1 | import React from 'react';
|
2 | import ReactDOM from 'react-dom';
|
3 | import { AppContainer } from 'react-hot-loader';
|
4 |
|
5 | import App from '../theme';
|
6 |
|
7 | import DB from '../theme/tmp/__md__.json';
|
8 |
|
9 |
|
10 |
|
11 | // class App extends React.Component {
|
12 |
|
13 | // render() {
|
14 | // return <div> {1}</div>;
|
15 | // }
|
16 | // }
|
17 |
|
18 | const render = (Component) => {
|
19 | ReactDOM.render(
|
20 | <AppContainer>
|
21 | <Component/>
|
22 | </AppContainer>,
|
23 | document.getElementById('root')
|
24 | );
|
25 | }
|
26 |
|
27 | render(App);
|
28 |
|
29 | // Hot Module Replacement API
|
30 | // if (module.hot) {
|
31 | // module.hot.accept('./App', () => {
|
32 | // render(App)
|
33 | // });
|
34 | // } |
\ | No newline at end of file |