Top "React-router-v4" questions

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

How to get params in component in react router dom v4?

I have this code: <BrowserRouter> <Route path="/(:filter)?" component={App} /> </BrowserRouter> the filter param …

javascript reactjs react-router react-router-v4 react-router-dom
How to set a base url for react-router at the app level?

I have an app created with create-react-app that I want to install in a subdirectory on my website. The recommended …

reactjs react-router-v4 create-react-app base-url
react-router Redirect vs history.push

I was reading react-router-redux examples and I confused, what is the difference beetween: import { Redirect } from 'react-router-dom' ... <Redirect to=…

react-router react-router-v4 react-router-redux react-router-dom
How to configure webpack dev server with react router dom v4?

This is the code of my webpack configuration: const compiler = webpack({ entry: ['whatwg-fetch', path.resolve(__dirname, 'js', 'app.js')], module: { …

reactjs webpack react-router webpack-dev-server react-router-v4
Using Jest to test a Link from react-router v4

I'm using jest to test a component with a <Link> from react-router v4. I get a warning that &…

react-router jestjs react-router-v4
React Router V4 - Warning: You tried to redirect to the same route you're currently on: "/home/dashboard"

I am getting this error tried different ways of routing still no luck. I have route config file i.e …

reactjs react-router-v4
React router 4 does not update view on link, but does on refresh

I am using the following simple nav code <Router> <Switch> <Route exact path='/dashboard' …

reactjs url react-router react-router-v4
Material-UI's Tabs integration with react router 4?

The new react-router syntax uses the Link component to move around the routes. But how could this be integrated with …

reactjs material-ui react-router-v4
How do I create react-router v4 breadcrumbs?

How do I create react-router v4 breadcrumbs? I tried asking this question on the react-router V4 website via an issue …

react-router-v4
How to nest routes in React Router v4?

Is there a way to nest routes in React Router v4? This works: <Router basename='/app'> <…

reactjs react-router react-router-v4