Saturday, July 7, 2018

What does registerServiceWorker do in React JS?




  • The serviceworker is a web API that helps you cache your assets and other files
  • Because of that, when the user is offline or on slow network, he/she can still see results on the screen.
  • Also It helps you build a better user experience, that's what you should know about service worker's for now. It's all about adding offline capabilities to your site.

No comments:

Post a Comment