Top "React-router" questions

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

Client Routing (using react-router) and Server-Side Routing

I have been thinking and I am confused with the routing between Client and Server. Suppose I use ReactJS for …

javascript reactjs routes react-router url-routing
How to parse query string in react-router v4

In react-router v3 I could access it with props.location.query.foo (if the current location was ?foo=bar) In …

reactjs react-router react-router-dom
React Router v4 <NavLink> vs <Link> benefits

Besides the ability to set an "activeClassName" and "activeStyle" on NavLink, is there any reason to use NavLink over Link …

reactjs react-router react-router-v4
How to restrict access to routes in react-router?

Does anyone know how to restrict access to particular routes in react-router? I want to check if the user is …

javascript reactjs react-router
Invariant failed: You should not use <Route> outside a <Router>

I use react-router-dom for routing in my React application. Part of my app extracted in another package. List of dependencies …

reactjs react-router react-router-dom
The prop `history` is marked as required in `Router`, but its value is `undefined`. in Router

I am new to ReactJs. This is my code: var React = require('react'); var ReactDOM = require('react-dom'); var {Route, Router, …

reactjs react-router
Get the current path in a react component

To determine the styling of specific menu item, I am trying to get the current path in my Navigation component. …

reactjs react-router react-router-redux
React-router and nginx

I am transitioning my react app from webpack-dev-server to nginx. When I go to the root url "localhost:8080/login" I …

nginx react-router
Next.js Redirect from / to another page

I'm new in Next.js and I'm wondering how to redirect from start page ( / ) to /hello-nextjs for example. Once user …

html reactjs routing react-router next.js
You should not use Route or withRouter() outside a Router when using react-router 4 and styled-component in react

I'm trying to build my first portfolio website and got stuck in routing using react-router-dom 4.2.2 and styled-components 2.2.3. error message: You …

javascript reactjs react-router styled-components