Implementing Protected Route and Authentication in React-JS - DEV Community
React Router v6 Authentication with Protected Routes, Nested Routes, Active Link - [04] - YouTube
It is a complete guide on React Router authentication. Also you can know everything from setting up a new React project to implementing user authentication.
Role Based Authorization with React Router v6 and Typescript | Aadarsha Acharya