hao0607
V2EX  ›  问与答

react-router 渲染页面问题

  •  
  •   hao0607 · Nov 1, 2017 · 1938 views
    This topic created in 3113 days ago, the information mentioned may be changed or developed.
    URL 的地址能正确改变,为什么对应的页面显示不出来?代码如下
    <Router history>
    <Route path='/' component={TarBarNav}>
    <Route exact path='/cleanapply' component={CleanApply}>
    <Route path='/cleanapply/selectLocation' component={SelectLocation}/>
    </Route>
    <Route path='/repairapply' component={RepairApplys}/>
    </Route>
    </Router>

    TarBarNav 页面上面有一个按钮 点一下跳转到 CleanApply 的页面 可是页面为什么不出来 一般这样的 会是什么原因 路由能够变化。本人 react 初学者小白,求大神能解答一下
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   999 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 22:17 · PVG 06:17 · LAX 15:17 · JFK 18:17
    ♥ Do have faith in what you're doing.