I have read this document about react-router Switch
I understand the definition about Switch and Route
But still couldn't understand some points
If I want to pick only one Route to render we use Switch like this
<Switch>
<Route exact path="/" component={Home} />
<Route path="/a" component={A} />
<Route path="/b" component={B} />
</Switch>
The point I can't understand is I can get same effect without Switch
<Route exact path="/" component={Home} />
<Route path="/a" component={A} />
<Route path="/b" component={B} />
So why do we use Switch ? When do we need to use Switch?
I found a situation that need to use Switch
If I want to render a specific component when no path match
we need to wrap Route in Switch like this
<Switch>
<Route exact path="/" component={Home} />
<Route path="/a" component={A} />
<Route path="/b" component={B} />
<Route component={SpecificComponent} />
</Switch>
Am I right ?


