react-router
react-router copied to clipboard
Declarative routing for React
### What version of React Router are you using? 5.3.1 ### Steps to Reproduce ```tsx ... `You have unsaved changes, sure you want to go to leave this page? `...
### What is the new or updated feature that you are suggesting? Integrating Documentation Search option. (Algolia, meilisearch or anything) ### Why should this feature be included? Every popular package...
### What is the new or updated feature that you are suggesting? Instead of returning `unknown` by default and then typecasting (as seen in one of the [examples](https://github.com/remix-run/react-router/blob/f0693f5c792ff42fe501c638fc76921a66db8c80/examples/data-router/src/routes.tsx#L95)), prefer generics:...
### What version of React Router are you using? 6.2.1 ### Steps to Reproduce ``` ``` And navigate to hash `#unknown/world` ### Expected Behavior I expect `World not found` to...
### What version of React Router are you using? [email protected] ### Steps to Reproduce HashRouter - [email protected] CompatRouter - [email protected] useNavigate hook navigate(path, {state}) the target path location is without...
### What is the new or updated feature that you are suggesting? The old `MemoryHistory` had those 2 properties that could be accessed in tests to check that the test...
### What is the new or updated feature that you are suggesting? Currently `NavLink` applies `aria-current="page"` to links that match the route, no matter if it is an exact match...
### What version of React Router are you using? 6.1.1 ### Steps to Reproduce Setup project using below nested routes. ``` useRoutes([ { path: '/', element: , children: [ {...
### What version of React Router are you using? v5-compat ### Steps to Reproduce Import a Switch from "react-router-dom": ```tsx import { Switch } from "react-router-dom"; ... console.log({Switch}); act(() =>...
### What is the new or updated feature that you are suggesting? I am currently having some performance issues with the latest react-router version. The route change that triggers the...