Skip to content

Instantly share code, notes, and snippets.


alexfedoseev/routes.jsx Secret

Created Jul 30, 2015
What would you like to do?
Routes: iteration 1
import React from 'react';
import { Route } from 'react-router';
import App from '../layouts/Layout';
import Main from '../components/Main';
import About from '../components/About';
import NotFound from '../components/NotFound';
export default (
<Route name="app" component={App}>
<Route name="main" path="/" component={Main} />
<Route name="about" path="/about" component={About} />
<Route name="not-found" path="*" component={NotFound} />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.