-
-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Docs]: Add docs for private/protected route implementation #10206
Comments
We have an example for this: https://github.com/remix-run/react-router/tree/dev/examples/auth |
@timdorr thank you, sorry for bothering you. |
Hi @timdorr , can we have an example for protected routes using the new data router an official example for protected routes using hooks/context will really help here |
Any news about this? |
I would need an example using |
Describe what's incorrect/missing in the documentation
I would like to see docs about private routes implementation, it's a common use case for applications. People writes articles about how to implement private routes(even for specific versions of react router), but don't you think that it should be documented as well and taken into account during next versions development?
https://dev.to/iamandrewluca/private-route-in-react-router-v6-lg5
https://jasonwatmore.com/post/2022/06/24/react-router-6-private-route-component-to-restrict-access-to-protected-pages
The text was updated successfully, but these errors were encountered: