Skip to content

Instantly share code, notes, and snippets.

@lesniakania
Last active November 3, 2015 18:22
Show Gist options
  • Save lesniakania/987a897eedf9c8f9ced2 to your computer and use it in GitHub Desktop.
Save lesniakania/987a897eedf9c8f9ced2 to your computer and use it in GitHub Desktop.
import React from 'react';
import { Route } from 'react-router';
import Main from './components/Main';
import PendingSubmissionsPage from './components/PendingSubmissionsPage';
import SubmissionFormPage from './components/SubmissionFormPage';
export default (
<Route path="/" component={Main}>
<Route path="pending" component={PendingSubmissionsPage} />
<Route path="submissions/new" component={SubmissionFormPage} />
</Route>
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment