Skip to content

Instantly share code, notes, and snippets.

@NikolayGalkin
Created April 6, 2017 13:03
Show Gist options
  • Save NikolayGalkin/37b50b00c4926fe5bea502701441c393 to your computer and use it in GitHub Desktop.
Save NikolayGalkin/37b50b00c4926fe5bea502701441c393 to your computer and use it in GitHub Desktop.
const router = (
<Provider store={store}>
<Router history={history}>
<Route path='/' component={App}>
<IndexRoute component={Home} />
<Route path='/recipes/add' component={AddRecipe} />
<Route path='/recipes/:id' component={SingleRecipe} />
<Route path='/signup' component={SignupPage} />
<Route path='/login' component={LoginPage} />
</Route>
</Router>
</Provider>
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment