What I learned:
- Create new project with Vite and React using
npm create vite@latest react-router --template react
. - How to install React Router Dom with
npm install --save react-router-dom
and use it (https://reactrouter.com/en/main/start/tutorial). - I learned about different types of routers: Browser Router, Hash Router, and Memory Router.
- How to use
useParams
. - How to use
useNavigate
. - How to use
Outlet
for nested routes. - A bit about authentication (Fake Auth).
- Roles and public/privates routes. And much more. Check it out for yourself by exploring this project.