Articles and tutorials ...
Hello everyone!
Probably you know that in our days, a modern website needs to load fast.
For this, we are using the react-router-dom ...
First of all you install the react-router-dom:
npm install react-router-dom
After that, in the page where you want to use the routes, you need to import few things ...
import {
Route,
createBrowserRouter,
createRoutesFromElements,
RouterProvider,
} from 'react-router-dom';