index.js 448 Bytes
import React from 'react';
import {render} from 'react-dom';

import {BrowserRouter as Router, Route,Switch,HashRouter,hashHistory} from 'react-router-dom';
import guochaoHome from './view/guochaoHome';
const SliderComponent = () => (
    <Switch>
        <Route path='/' component={guochaoHome} />
    </Switch>
);

render(
    <HashRouter history={hashHistory}>
        <SliderComponent/>
    </HashRouter>,
    document.querySelector("#root")
);