redux-webpack-es6-boilerplate
Version:
A starter project for modern React apps with Redux
15 lines (12 loc) • 423 B
JavaScript
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>
);