React Router

What's React Router?

React Router is a router for use with React. It helps keeping your URL in sync with your UI.

React is a tool for writing single-page applications. But single page does not mean that a web application only has 1 page. It means we only load the HTML initially. We dynamically create new pages with the use of React and in our case React Router to mimic loading new pages. Mimic, because we don't actually load new pages from a server. You will notice the absence of the "white flash" when navigating, that is present when navigating a traditional website.

Check out https://reacttraining.com/react-router/web/guides/quick-start to get started with React Router.

When using React Router please use browser router whenever possible.

Last updated

Was this helpful?