简体   繁体   中英

PWA Service Worker In React

I'm trying to run service worker on my react app. So I used the tutorial and installed a react app with pwa-template, and changed the unregister part to register in my index.js. I'm not sure what to do next cause it's not working and I guess I missed something in between. Can anyone help me with that?

You don't need to install third-party packages for working with PWAs . follow instructions in this link.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM