Skip to content

Instantly share code, notes, and snippets.

@Gethyl
Created December 20, 2016 05:45
Show Gist options
  • Save Gethyl/abde4b620bf790488ca63cbf519baaef to your computer and use it in GitHub Desktop.
Save Gethyl/abde4b620bf790488ca63cbf519baaef to your computer and use it in GitHub Desktop.
route.js from IsomorphicReactRedux
import React from "react";
import { Route, IndexRoute} from "react-router";
import Layout from "./components/Layout";
import Index from "./components/Index";
import Help from "./components/Help/Help";
import NotFoundPage from "./components/NotFoundPage";
const routes = (
<Route path="/" component={Layout} >
<IndexRoute component={Index}/>
<Route path="/help" component={Help}/>
<Route path="*" component={NotFoundPage}/>
</Route>
);
export default routes;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment