1. 不能有空格
You should not use <Route component> and <Route children> in the same route; <Route component> will be ignored
<Route path='/fa' component={father} ></Route>
<Route path='/fa1' component={comon} ></Route>
<Route path="/comon" component={comon}> </Route> ///有空格 注意不能有空格,否则页面打开没有内容。
网友评论