This is common purpose, directing unmatch request to notfound page.
making this with react-router v4 looks like previous versions and I expect this sample works bel
React Router's No Match documentation covers this. You need to import the component, then you can remove the path attribute altogether.
A
renders the first childthat matches. Awith no path always matches
This is the example that uses:
So in your case, you'd simply drop the path="*" and introduce the :
Remember to include Switch to your import statement at the top.