An open API service indexing awesome lists of open source software.

https://github.com/openscript/react-router-private-protected-routes

Private or protected routes with React Router Dom
https://github.com/openscript/react-router-private-protected-routes

react react-router react-router-dom

Last synced: 2 months ago
JSON representation

Private or protected routes with React Router Dom

Awesome Lists containing this project

README

        

# React Router private or protected routes

This is an example to implement private or protected routes with redirection after successful authentication to the previously requested path.

- [React Router v5 example (separate branch)](https://github.com/openscript/react-router-private-protected-routes/tree/react-router-5)
- [React Router v6 example (separate branch)](https://github.com/openscript/react-router-private-protected-routes/tree/react-router-6)