-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

GraphQL Best Practices
By :

The frontend of our app will allow users to log in and register a user account. They should also be able to fill in registration forms for the salon or client. To do this, we will start by implementing the routing system and creating a layout for our app. After that, we will implement a home page, as well as the salon and client registration forms. At the end, we will code salon and client functionalities. So, let’s get started!
Before we create the visual part of the app, we have to set up basic routing to see how the components behave while we develop the project.
To do this, inside src/App.tsx
(which we imported inside src/main.tsx
), we will create a routing tree for react router
and return the react
router
app:
import { createBrowserRouter, RouterProvider } from 'react-router-dom'; import Home from '@/pages/Home/Home'; import AuthRoot from '@/pages/auth/AuthRoot'...