Permalink
mrmckeb
Add template support (#7716)
4c0c819
Oct 24, 2019
Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign up
Find file
Copy path
create-react-app/packages/cra-template/template/src/index.js
Find file
Copy path
| import React from 'react'; | |
| import ReactDOM from 'react-dom'; | |
| import './index.css'; | |
| import App from './App'; | |
| import * as serviceWorker from './serviceWorker'; | |
| ReactDOM.render(<App />, document.getElementById('root')); | |
| // 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(); |