From the course: Build Modern Web Apps with React, Hooks, State Management, and APIs Using Vite or Next.js

Unlock this course with a free trial

Join today to access over 25,200 courses taught by industry experts.

React Router installation

React Router installation

Hello and welcome back. In this video, we are going to learn how we can set up the react router library in the react project. First step is to do the installations. We have to install the react router library. For installing the react router library and seeing its documentation, you can go to the official documentation website, the react router.com. After that, you can click on this document link. React router library can be used in three different modes. Declarative, data and framework. Obviously, each of them has a specific use case and react router itself is a complete course to learning about it, but during our course for learning of the react, we are going to use the declarative mode. I'm going to click on this and in this declarative mode, we will be learning about around 90% of react router and by learning this, you will be able to do about 90% of the thing that routing is concerned with. After that, for making separate kind of use cases with your react applications, obviously…

Contents