Coding Blog
Saturday, October 16, 2021
Enable PWA for React App
1. Create project "
npx create-react-app myapp --template cra-template-pwa"
2.
Update "App.css" and "App.js" with the desired functionality implementation
3.
Change "
serviceWorkerRegistration.unregister()
" of "index.js" to "
serviceWorkerRegistration.register()
"
4. Deploy the app
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment