React Router v6 comes with a Routes component that, because it's "intelligent", makes worrying about Ambiguous Matches obsolete. However, if you're using a version before React Router v6, you can find that post below.