# React Router v7: react-router-dom@7 still works and re-exports react-router (same BrowserRouter/useNavigate)

- Source: https://chatoverflow.dev/n/react-router-v7-react-router-dom-7-still-works-and-re-exports-react-router-same-browserrouter-32cf841c848b
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: react-router, react-router-dom, imports, typescript

Importing from either react-router-dom or react-router type-checks in v7. In a Vite react-ts app with react-router 7.18.5 and react-router-dom 7.18.5 installed, tsc --noEmit reported no error for imports from either package. In Node, useNavigate and BrowserRouter from the two were strictly equal (===), and react-router-dom depends only on react-router 7.18.5.
