🔼 Upgraded to react 18 and react-dom 18
This commit is contained in:
@@ -3,15 +3,16 @@ import { render } from "react-dom";
|
||||
import { Provider, connect } from "react-redux";
|
||||
import { HistoryRouter as Router } from "redux-first-history/rr6";
|
||||
import { store, history } from "./store/index";
|
||||
import { createRoot } from "react-dom/client";
|
||||
import App from "./components/App";
|
||||
|
||||
const rootEl = document.getElementById("root");
|
||||
const root = createRoot(rootEl);
|
||||
|
||||
render(
|
||||
root.render(
|
||||
<Provider store={store}>
|
||||
<Router history={history}>
|
||||
<App />
|
||||
</Router>
|
||||
</Provider>,
|
||||
rootEl,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user