React Routing with Auth0

Hey everyone,

I am using react and I am trying to implement an auth0 routing to my project but I am just getting so many errors and could not implement it. I have researched for a guide for a way to do auth0 routing with react-router v6 but failed to find one.

My main goal is to show just a login page when the user visits the website and after login I want to direct them to the actual website where the user will see all the functions of the website like navbar, homepage and other elements.

Does anyone have an any code sample that achieves feature ?

Thank you for your time.