Extracted a react-router-middleware module
Use a 'react-404' view for its 404 rendering