Logo Awesome React

Awesome React

Ambiguous Matches with React Router

This is a video from TylerMcGinnis.com's "React Router" course. For the full course, visit https://tylermcginnis.com/courses/react-router.

For the full post, visit https://tylermcginnis.com/react-router-ambiguous-matches/.

When using React Router, there are times when you may want to have both a static path like /settings along with a dynamic path like /:uid. The problem is that /settings is ambiguous and will match for both /settings and /:uid. In this post we'll look at how to fix this ambiguous matches problem with React Router.

Twitter - https://twitter.com/tylermcginnis