fix unmount stuff
This commit is contained in:
parent
b2898ef4b3
commit
c3de9692d8
@ -24,7 +24,7 @@ export const mount = async (Сomponent, element = document.getElementById('app')
|
||||
}
|
||||
const store = createStore({ user });
|
||||
|
||||
const rootElement = ReactDOM.createRoot(element);
|
||||
rootElement = ReactDOM.createRoot(element);
|
||||
rootElement.render(<Сomponent store={store} />);
|
||||
|
||||
if(module.hot) {
|
||||
|
Loading…
Reference in New Issue
Block a user