🔼 Upgraded to react-router v6
This commit is contained in:
@@ -1,19 +1,17 @@
|
||||
import React from "react";
|
||||
import { render } from "react-dom";
|
||||
import { Provider } from "react-redux";
|
||||
import { ConnectedRouter } from "connected-react-router";
|
||||
import configureStore, { history } from "./store/index";
|
||||
|
||||
import { Provider, connect } from "react-redux";
|
||||
import { HistoryRouter as Router } from "redux-first-history/rr6";
|
||||
import { store, history } from "./store/index";
|
||||
import App from "./components/App";
|
||||
const store = configureStore({});
|
||||
|
||||
const rootEl = document.getElementById("root");
|
||||
|
||||
render(
|
||||
<Provider store={store}>
|
||||
<ConnectedRouter history={history}>
|
||||
<Router history={history}>
|
||||
<App />
|
||||
</ConnectedRouter>
|
||||
</Router>
|
||||
</Provider>,
|
||||
rootEl,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user