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 | import Nav from '../theme/tmp/__nav__';
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 | DB.nav = Nav;
|
17 |
|
18 | var render = function render(Component) {
|
19 | ReactDOM.render(React.createElement(
|
20 | AppContainer,
|
21 | null,
|
22 | React.createElement(Component, { db: DB })
|
23 | ), document.getElementById('root'));
|
24 | };
|
25 |
|
26 | render(App);
|
27 |
|
28 |
|
29 | if (module.hot) {
|
30 | module.hot.accept('../theme', function () {
|
31 | render(App);
|
32 | });
|
33 | }
|
34 | ;
|
35 |
|
36 | var _temp = function () {
|
37 | if (typeof __REACT_HOT_LOADER__ === 'undefined') {
|
38 | return;
|
39 | }
|
40 |
|
41 | __REACT_HOT_LOADER__.register(render, 'render', 'src/entry.index.js');
|
42 | }();
|
43 |
|
44 | ; |
\ | No newline at end of file |