Top "React-router-v4" questions

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

React-Router - Uncaught TypeError: Cannot read property 'route' of undefined

Trying to use react router v4 with redux and running into this error, seem to be following the docs, couldn't …

javascript reactjs redux react-router react-router-v4
React router v4 not working with Redux

Developing a React application using React router v4. All worked well until I introduced Redux in my app. Since then …

reactjs redux react-redux react-router-v4 react-router-component
React Router with React 16.6 Suspense "Invalid prop `component` of type `object` supplied to `Route`, expected `function`."

I'm using the latest version (16.6) of React with react-router (4.3.1) and trying to use code splitting using React.Suspense. Although my …

reactjs react-router react-router-v4 dynamic-import react-16
React-Router - Route re-rendering component on route change

Please read this properly before marking as duplicate, I assure you I've read and tried everything everyone suggests about this …

reactjs typescript react-router-v4 react-loadable
Is it possible to have multiple <Switch> in React.js?

I am building a React project without Redux. I would love to have two, or in this case 3 different Switches 1…

javascript reactjs react-router react-router-v4
Redirect to login page in react router 4

I am new to react and still learning my way around. I am creating a single page app where the …

javascript reactjs react-router-v4 react-router-dom
How to Access History Object Outside of a React Component

First of all, I am pretty familiar with the withRouter HoC, however, in this case, it doesn't help because I …

react-router react-router-v4
How to access history object outside <Route /> in React Router v4

I have this following code: import { BrowserRouter as Router, Route, Link } from 'react-router-dom' const Routes = () => ( <Router basename="/blog"&…

react-router react-router-v4
reset component's internal state on route change

I am using react-router-v4 along with react 16. I want to reset the component's internal state when the user go to …

reactjs react-router react-router-v4 react-router-dom
React router v4 - Authorized routes with HOC

I have a problem to prevent unauthorized users from accessing authorized-only routes/components - such as logged in users dashboard …

javascript reactjs functional-programming react-router-v4 higher-order-components