Skip to content

Instantly share code, notes, and snippets.

@jsoneaday
Created January 4, 2020 21:34
Show Gist options
  • Save jsoneaday/c8107f62cacad5fac4a0bf16a949b37b to your computer and use it in GitHub Desktop.
Save jsoneaday/c8107f62cacad5fac4a0bf16a949b37b to your computer and use it in GitHub Desktop.
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import * as serviceWorker from './serviceWorker';
import { defineCustomElements } from '@ionic/pwa-elements/loader';
ReactDOM.render(<App />, document.getElementById('root'));
defineCustomElements(window);
// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls.
// Learn more about service workers: https://bit.ly/CRA-PWA
serviceWorker.unregister();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment