I work with react-router v4, and I like to merge different route to a single one. Is there a way to simplify the following code:
<Route exact path="/" component={myPage} />
<Route path="/a/:a" component={myPage} />
<Route path="/b/:b" component={myPage} />
MyPage
should be answering for /
, /a/foo
, but not for c/bar
.