Open sunnyrajkotiyarazorpay opened 3 years ago
@sunnyrajkotiyarazorpay
import React from 'react'
import {Provider} from 'react-redux'
import {store,history} from './reducers'
import { ConnectedRouter } from 'connected-react-router'
import {
HashRouter,
} from "react-router-dom";
const App: React.FC = ({children}) => (
<Provider store={store}>
<ConnectedRouter history={history}>
<HashRouter>
{children}
</HashRouter>
</ConnectedRouter>
</Provider>
);
export default App;
Facing an issue with ConnectedRouter in typescript.
Here is my code
When I try to compile the typescript, I am getting
Here are the versions of react router and connected-react-router
"react-router-dom": "^5.2.0", "connected-react-router": "^6.8.0",