2019-01-03 17:14:25 +03:00
|
|
|
import React from 'react';
|
2022-06-06 19:22:05 +03:00
|
|
|
import { createRoot } from 'react-dom/client';
|
2022-01-10 18:41:53 +03:00
|
|
|
import { Root } from '../src';
|
2019-01-03 17:14:25 +03:00
|
|
|
|
2022-06-06 19:22:05 +03:00
|
|
|
const root = createRoot(document.getElementById('root')!);
|
|
|
|
root.render(<Root />);
|
2019-01-03 17:14:25 +03:00
|
|
|
|
|
|
|
if (module.hot) {
|
|
|
|
// https://github.com/webpack/webpack/issues/418#issuecomment-53398056
|
2020-08-08 23:26:39 +03:00
|
|
|
module.hot.accept((err) => {
|
2019-01-10 20:23:33 +03:00
|
|
|
if (err) console.error(err.message); // eslint-disable-line no-console
|
2019-01-03 17:14:25 +03:00
|
|
|
});
|
|
|
|
|
|
|
|
/*
|
|
|
|
module.hot.accept('./app', () => {
|
|
|
|
const NextApp = require('./app').default;
|
|
|
|
render(
|
|
|
|
<NextApp />,
|
|
|
|
document.getElementById('root')
|
|
|
|
);
|
|
|
|
});
|
|
|
|
*/
|
|
|
|
}
|