hao0607
V2EX  ›  问与答

react-router 渲染页面问题

  •  
  •   hao0607 · Nov 1, 2017 · 1970 views
    This topic created in 3126 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   ·   6044 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 466ea39e · 79ms · UTC 06:13 · PVG 14:13 · LAX 23:13 · JFK 02:13
    ♥ Do have faith in what you're doing.