react-static-webpack-plugin
Version:
Build full static sites using React, React Router and Webpack
15 lines (11 loc) • 422 B
JavaScript
import React from 'react';
import { Route, IndexRoute } from 'react-router';
import { App, About, Home, NotFound } from './components/App.js';
export const routes = (
<Route path='/' component={App}>
<IndexRoute title='App' component={Home} />
<Route path='about' title='App - About' component={About} />
<Route path='*' title='404: Not Found' component={NotFound} />
</Route>
);
export default routes;