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
It does not work for me, particularly one is using this config
So, I have to check the path in the render function of Homepage component. Something like this:
render(){ const {match, location, history} = this.props; if (location.pathname === '/'){ return (Home) }else{ return null } }