main_20190416211450.js 748 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
import React from 'react';
import { Switch, Route } from 'react-router-dom';

import Menu from './menu';
import Index from './components/Index';
import Classify from './components/classify';
import Study from './components/study';
import My from './components/my';


const main = () => (
    <div style={{ backgroundColor: 'rgb(245, 245, 249)', textAlign: 'center' }}>
        <div>
            <Switch>
                <Route path='/Index' component={Index}></Route>
                <Route path='/Classify' component={Classify}></Route>
                <Route path='/Study' component={Study}></Route>
                <Route path='/My' component={My}></Route>
            </Switch>
        </div>
        <Menu />
    </div>
)

export default main;