UNPKG

redux-webpack-es6-boilerplate

Version:
15 lines (12 loc) 423 B
import React from 'react'; import { Route, IndexRoute, Redirect } from 'react-router'; import App from './App'; import FriendsView from 'features/friends/components/FriendsView'; import NotFoundView from 'components/NotFound'; export default ( <Route path="/" component={App}> <IndexRoute component={FriendsView} /> <Route path="404" component={NotFoundView} /> <Redirect from="*" to="404" /> </Route> );