4
我在想下面例子中IndexRoute
和DefaultRoute
有什么区别?据我了解,这两种情况下Home
将呈现,对吧?反应路由器:IndexRoute与DefaultRoute
<Route path="/" handler={App}>
<IndexRoute handler={Home}/>
<Route path="about" handler={About}/>
</Route>
和
<Route path="/" handler={App}>
<DefaultRoute handler={Home}/>
<Route path="about" handler={About}/>
</Route>