connected-react-router
connected-react-router copied to clipboard
Is connected-react-router compatible with react 18?
Is the latest version (6.9.2) compatible with react 18?
i think yes, but it's not compatible with router v6 (
The alternative one redux-first-history, it works on my end without using connected-react-router
ATM you can see package.json
"peerDependencies": { "history": "^4.7.2", "react": "^16.4.0 || ^17.0.0", "react-redux": "^6.0.0 || ^7.1.0", "react-router": "^4.3.1 || ^5.0.0", "redux": "^3.6.0 || ^4.0.0" },
So it seems that no.
Also when you run npm i connected-react-router
you get an error:
npm ERR! Found: [email protected] npm ERR! node_modules/react npm ERR! react@"^18.2.0" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer react@"^16.4.0 || ^17.0.0" from [email protected]
can we use router 4.3.2 with react 18
For React 18 / Router 6 / Redux 8
setup one may use another library: https://github.com/lagunovsky/redux-react-router
which is compatible with connected-react-router
APIs.