Is react-router-dom 4 compatible with React 18?

Issues Detected

react-router-dom@4.3.1 has issues with React 18.2.0

react-router-dom v4 is legacy and may have issues with React 18. Upgrade to v5 or v6 recommended

Check Details

Framework
⚛️ React18.2.0
Package
react-router-dom@4.3.1
Conflict typecompatibility-conflict
FixUpdate react-router-dom to version remove or replace
Suggestedremove or replace
Verified 3d ago1 check

FAQ

There are compatibility issues between react-router-dom@4.3.1 and React 18.2.0. react-router-dom v4 is legacy and may have issues with React 18. Upgrade to v5 or v6 recommended

Analyze Your Full package.json

Upload your package.json and get a complete compatibility report for all your dependencies at once.

Try Another Check

Check another package combination instantly

1
Is react-router-dom 4 compatible with React 18? | DepFixer