Top "React-router-v4" questions

React Router - A complete routing library for React inspired by Ember's routing system

How to preserve query parameters in react-router v4

Users redirected to my app after login (server on java), and they have url, which looks like this http://10.8.0.29:8083/html/?…

javascript reactjs react-router react-router-v4
How does one access state on a nested React component wrapped by an HOC?

I'm using Enzyme, and we can actually use the example component given in the docs as a foundation for my …

react-router jestjs enzyme react-router-v4
Why can I not nest Route components in react-router 4.x?

How in the world does one use nested routes in react-router, specifically, version 4.x? The following worked well in previous …

javascript reactjs react-router react-router-v4
Create own react route class in typescript

I found this (reacttraining.com) site, which explains react-router with some examples. But I am not be able to do …

reactjs typescript react-router react-router-v4
Detect change in query param react-router-dom v4.x and re-render component

I am not really sure why its showing the default route once I did a query param change. Is there …

javascript reactjs react-router react-router-v4 query-parameters
React Router 4 Match returns undefined

I'm using react router 4 and I'm having trouble accessing the id from a url using params. I've followed the react …

reactjs react-router-v4
Is there any way to hide the params from the query string in react routing?

Is there any way to remove the query string from the url in react application? this.history.push('component/:id') …

reactjs routing react-router-v4 react-router-dom react-routing
difference between React router.push and router.replace?

What is the difference between React router.push and router.replace?

reactjs react-router react-router-v4
Testing react-router v4 with Jest and Enzyme

I have a simple app they use react-router v4 const App = () => ( <Switch> <Route exact path="/" component={() =&…

javascript reactjs jestjs enzyme react-router-v4