- Published on
React Router Tutorial
- Authors
- Name
- Anders Lind
- @testdrivencoder
How to implement the react router
React Router Basics
Before we start diving into the advanced features of React Router, Lets dive into the basics of React Router. First of all lets get the React Router by running npm i react-router-dom to install React Router. This library is tailored DOM version of React Router. If you are planning to use React Native use react-router-native. The two libraries are identical except for this small difference the libraries work almost exactly the same.
In this tutorial I will be chatting about react-router-dom, but as I mentioned before both libraries are almost identical.
Once you have this library there are three important steps you need to do get the app ready to use React Router.
- Setup your router
- Define your routes
- Handle navigation
Configuring The Router
Stay tuned!