0

Can I use both serviceWorker and reportWebVitals in a react project?

The tutorial I'm following along is using serviceWorker to create PWA (Progressive Web App), but the create-react-app build setup I've downloaded has reportWebVitals instead of serviceWorker. Option #1 : Should I delete reportWebVitals, and create serviceWorker file? Option #2 : Keep both! What should be done?

10th Nov 2022, 1:15 PM
Asha
Asha - avatar
0 Answers