AveroLLC / typesafe-react-router

Utility functions to help facilitate type-safe routing with react-router
Apache License 2.0
89 stars 14 forks source link

Implement .nest() to extend the routes #26

Closed goje87 closed 2 years ago

goje87 commented 2 years ago

Sometimes it might be required to create a route (say extended route) that might be an extension of another route (say original route). The proposed nest() function provides a way to do the same without having to repeat the params passed to the original route.

Example usage of this function is provided in the README.md.

Please feel free to reach out to me@goje87.com if required.