import React, { Component } from 'react'
import 'antd/dist/antd.css'
import { Button } from 'antd'
import { BrowserRouter as Router, Route, Link } from 'react-router-dom'
import './styles/main.less'
import routes from './routers'
import Banner from './components/banner'
class App extends Component {
render () {
return (
{routes.map((r, key) => {
if (r.text) {
return
{r.text}
}
})}
{routes.map((route, key) => {
if (route.exact) {
return
key={key}
exact
path={route.path}
render={props => (
)} />
}else {
return (
)} />
}
})}
)
}
}
export default App