1234567891011121314 |
- import React from "react";
- import { IndexRoute, Route, Router, hashHistory as history } from "react-router";
- import Main from "../components/Main";
- import Home from "../components/Home";
- const routes = (
- <Router history={history}>
- <Route path="/" component={Main}>
- <IndexRoute component={Home} />
- </Route>
- </Router>
- );
- export default routes;
|