Hi @neilenns
Welcome to the Auth0 Community!
Did you have a chance to check our guide → React Authentication By Example:Using React Router 6 with a code snippet that can be found here.
If you find this guide/github repo outdated, please open an issue, and I will ping the repo maintainer about this.
I hope it will help you
Thanks, and have a great day!
Dawid