fix unmount stuff

This commit is contained in:
Primakov Alexandr Alexandrovich 2024-10-22 16:56:19 +03:00
parent b2898ef4b3
commit c3de9692d8

View File

@ -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) {