How to use the rmw-shell/lib/utils/serviceWorker.register function in rmw-shell

To help you get started, we’ve selected a few rmw-shell examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github TarikHuber / react-most-wanted / src / index.js View on Github external
import * as serviceWorker from 'rmw-shell/lib/utils/serviceWorker'
import React from 'react'
import ReactDOM from 'react-dom'
import Loadable from 'react-loadable'
import LoadingComponent from 'rmw-shell/lib/components/LoadingComponent'
//import App from './App'

const Loading = () => 
export const AppAsync = Loadable({
  loader: () => import('./App'),
  loading: Loading
})

ReactDOM.render(, document.getElementById('root'))

serviceWorker.register({})
github TarikHuber / react-most-wanted / packages / cra-template-rmw / template / src / index.js View on Github external
import * as serviceWorker from 'rmw-shell/lib/utils/serviceWorker'
import React from 'react'
import ReactDOM from 'react-dom'
import Loadable from 'react-loadable'
import LoadingComponent from 'rmw-shell/lib/components/LoadingComponent'
//import App from './App'

const Loading = () => 
export const AppAsync = Loadable({
  loader: () => import('./App'),
  loading: Loading,
})

ReactDOM.render(, document.getElementById('root'))

serviceWorker.register({})