registerServiceWorker在React JS中做什么?
我是React的新手,我想知道以下代码中的registerServiceWorker()的目的是什么? import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();