lib/index.js
let routes = (
<Router history={browserHistory}>
<Route path="/" component={JobIndex}/>
<Route path="/jobs/:jobId" component={JobShow}/>
<Route path="*" component={helpers.notFound}/>*****ERRORS!
</Router>
we are declaring that if someone puts in anything not handled by explicit route declaration, send the component helpers.notFound, but that’s not a component, it’s just a regular function. So this throws errors and nothing is rendered. We should make a component that is a 404 not found screen, and render that.
lib/index.js
let routes = (<Router history={browserHistory}><Route path="/" component={JobIndex}/><Route path="/jobs/:jobId" component={JobShow}/><Route path="*" component={helpers.notFound}/>*****ERRORS!</Router>we are declaring that if someone puts in anything not handled by explicit route declaration, send the component
helpers.notFound, but that’s not a component, it’s just a regular function. So this throws errors and nothing is rendered. We should make a component that is a 404 not found screen, and render that.