Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lernen Get Started with React Router | React Router
Expert React
course content

Kursinhalt

Expert React

Expert React

1. React Key Concepts
2. React Router
3. Redux Toolkit
4. Formik
5. Jest
6. Next Steps

book
Get Started with React Router

Note

Throughout the course, challenges will be offered using CodeSandbox, where all the required packages will be pre-installed by default. However, in real-world scenarios or if you prefer to work locally on your machine, additional packages need to be installed to work with them.

Installation

To begin utilizing the React Router library, we first need to install it in our project using a package manager such as npm or yarn. Open the terminal in the project directory and execute one of the following commands:

Using npm:

Using yarn:

Сheckup

To verify that the react-router-dom package has been added to the project, we can check the package.json file. By default, the dependencies object only includes the packages required for running and setting up a plain React project:

After adding the package, we will observe the modified dependencies object with the react-router-dom package included (line 7):

What package needs to be installed additionally to work with React Router library?

What package needs to be installed additionally to work with React Router library?

Wählen Sie die richtige Antwort aus

War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 2. Kapitel 2
We're sorry to hear that something went wrong. What happened?
some-alt