Please consult our newly released React Authentication By Example: Using React Router 6
for guidance on how to integrate Auth0 with a React Router v6 application. While the guide uses React v18, the same architecture would apply to an app that uses React v17.