| Total Complexity | 1 |
| Complexity/F | 0 |
| Lines of Code | 25 |
| Function Count | 0 |
| Duplicated Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | /* global window document */ |
||
| 2 | |||
| 3 | import React from 'react'; |
||
| 4 | import ReactDOM from 'react-dom'; |
||
| 5 | import { AppContainer } from 'react-hot-loader'; |
||
| 6 | |||
| 7 | import App from './component/App'; |
||
| 8 | import './style/common.scss'; |
||
| 9 | |||
| 10 | const appState = window.state; |
||
| 11 | |||
| 12 | ReactDOM.render( |
||
| 13 | <AppContainer><App {...appState} /></AppContainer>, |
||
| 14 | document.getElementById('app-main'), |
||
| 15 | ); |
||
| 16 | |||
| 17 | if (module.hot) { |
||
| 18 | module.hot.accept('./component/App', () => { |
||
| 19 | ReactDOM.render( |
||
| 20 | (<AppContainer><App {...appState} /></AppContainer>), |
||
| 21 | document.getElementById('app-main'), |
||
| 22 | ); |
||
| 23 | }); |
||
| 24 | } |
||
| 25 |