redux-devtools/packages/redux-devtools-core/index.js
Nathan Bierema 10bf7bc084
chore(*): upgrade prettier (#570)
* chore(*): upgrade prettier

* chore(*): upgrade prettier
2020-08-08 16:26:39 -04:00

23 lines
540 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); // eslint-disable-line no-console
});
/*
module.hot.accept('./app', () => {
const NextApp = require('./app').default;
render(
<NextApp />,
document.getElementById('root')
);
});
*/
}