mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-11-23 01:56:52 +03:00
26 lines
510 B
JavaScript
26 lines
510 B
JavaScript
import React from 'react';
|
|
import { render } from 'react-dom';
|
|
import App from './src/app';
|
|
|
|
render(
|
|
<App />,
|
|
document.getElementById('root')
|
|
);
|
|
|
|
if (module.hot) {
|
|
// https://github.com/webpack/webpack/issues/418#issuecomment-53398056
|
|
module.hot.accept(err => {
|
|
if (err) console.error(err.message);
|
|
});
|
|
|
|
/*
|
|
module.hot.accept('./app', () => {
|
|
const NextApp = require('./app').default;
|
|
render(
|
|
<NextApp />,
|
|
document.getElementById('root')
|
|
);
|
|
});
|
|
*/
|
|
}
|