()
| 12 | |
| 13 | const root = document.getElementById('root'); |
| 14 | const render = () => { |
| 15 | try { |
| 16 | ReactDOM.hydrate( |
| 17 | <App |
| 18 | name={window.__INITIAL_PATH__} |
| 19 | data={data} |
| 20 | layout={Layout} |
| 21 | />, |
| 22 | root |
| 23 | ); |
| 24 | } catch (e) { |
| 25 | ReactDOM.render( |
| 26 | <RedBox error={e} />, |
| 27 | root |
| 28 | ); |
| 29 | } |
| 30 | }; |
| 31 | |
| 32 | if (module.hot) { |
| 33 | module.hot.accept(() => { |
no test coverage detected
searching dependent graphs…