4
Мне интересно, какая разница между IndexRoute
и DefaultRoute
в примере ниже? Как я понимаю, в обоих случаях будет отображаться Home
, верно?React-router: IndexRoute vs 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>