0514 react路由

const BasicRoute = (props) => (
  <HashRouter>
      <Switch>
          <Route  path="/" component={BottomPage}/>
          <Route  path="/bottom/" component={BottomPage}/>
          <Route exact path="/article" component={Article} />
      </Switch>
  
  </HashRouter>
);

这样  #/Article链接访问不了,去掉 

 <Route  path="/" component={BottomPage}/> 就可以了
原文地址:https://www.cnblogs.com/cnchengv/p/14769104.html