yapi/client/routes.js

15 lines
447 B
JavaScript
Raw Normal View History

2017-07-05 14:10:06 +08:00
import React from 'react'
import { BrowserRouter as Router, Route, Link } from 'react-router-dom'
2017-07-07 17:26:31 +08:00
import { Home, Login, ProjectGroups } from './containers/index'
2017-07-05 14:10:06 +08:00
export default store => {
return (
<Router>
2017-07-07 17:26:31 +08:00
<div className="router-main">
<Route path="/" component={ Home } />
<Route path="/Login" component={ Login } />
<Route path="/ProjectGroups" component={ ProjectGroups } />
</div>
2017-07-05 14:10:06 +08:00
</Router>
)
}