Service Worker in React

I provide a application with React & Laravel, I want add service worker for PWA application to my app.
I have a service-worker.js and with manifest.json I can to do this, but I want know than this with this code?

const f7params = {
    id: 'app.loyalty', // App bundle ID
    name: 'Loyalty', // App name
    theme: 'auto', // Automatic theme detection
    version: '1.0',
    serviceWorker: {
        path: 'sw.js',
        scope: 'http://localhost:3000/',