diff --git a/src/index.tsx b/src/index.tsx index 07852ae..f8f8087 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -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) {