What is the purpose of registerServiceWorker in React?

  • To register a new service worker with the browser
  • To enable client-side caching of static assets
  • To enable offline access to the application
  • All of the above
registerServiceWorker is a utility function provided by the Create React App tool that registers a new service worker with the browser. This service worker enables client-side caching of static assets and enables offline access to the application.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *