我想显示title在<AppBar />以某种方式从目前的路线通过。
在React Router v4中,如何将<AppBar />当前路由传递到titleprop中?
<Router basename='/app'>
<main>
<Menu active={menu} close={this.closeMenu} />
<Overlay active={menu} onClick={this.closeMenu} />
<AppBar handleMenuIcon={this.handleMenuIcon} title='Test' />
<Route path='/customers' component={Customers} />
</main>
</Router>
有没有办法通过从自定义自定义标题prop上<Route />?
这是使用更多信息的解决方案
history路由器内部