Initial boilerplate setup

This commit is contained in:
Barry Low committed 2018-10-09 15:18:13 -07:00
1 parent 739aca9495
commit 8ee9e8a838
17 files changed
+29239

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
/* eslint-disable no-unused-vars */
import React from 'react'
import ReactDOM from 'react-dom'
import App from './App'
ReactDOM.render(<App />, document.getElementById('root'))
let frontendReloadCount = 0
if (process.env.NODE_ENV === 'development') {
if (module.hot) {
module.hot.accept()
module.hot.accept('./index', () => {
try {
log.debug('Updating front-end')
frontendReloadCount = (frontendReloadCount || 0) + 1
} catch (err) {
log(err.stack)
}
})
}
}