You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Matterwiki/client/app/index.jsx

22 lines
638 B
React

import React from 'react';
import {render} from 'react-dom';
import { Router, Route, IndexRoute, browserHistory } from 'react-router';
import App from './static/app.jsx';
import Home from './static/home.jsx';
import Login from './static/login.jsx';
import About from './static/about.jsx';
import Product from './static/product.jsx';
render(
<Router history={browserHistory}>
<Route path="/" component={App}>
<IndexRoute component={Login}/>
8 years ago
<Route path="home" component={Home}/>
<Route path="about" component={About}/>
<Route path="product" component={Product}/>
</Route>
</Router>
, document.body);