Search⌘ K

Configuring the Project

Explore how to prepare your React project by configuring routing with React Router and adding styling using React Bootstrap. This lesson guides you through creating the Home page and registering routes, essential steps before implementing authentication.

Before starting to write the authentication flow, let’s make sure that the project is ready for coding. In this lesson, we’ll configure styling and routing and allow the request on the API.

Let’s start with routing first.

Adding the React Router

Routing in a frontend application represents everything that deals with moving from one view to another and loading the right page using the right URL.

React doesn’t come with an integrated routing package, so we’ll use the react-router package.

We can install the package using the following command:

yarn add react-router-dom@6

Note: ...