now you want to set articesList
as the default route. Click the article tag in AppSider
to go to articlesList
route, and click on the article in ArticlesList
to enter articleDetail
Route
App.js
<Layout className="app-container">
<AppSider />
<AppContent />
</Layout>
AppContent
class AppContent extends React.Component {
render() {
return (
<Content className="app-content bg-fff">
<Switch>
<Route path="/articleDetail" component={ArticleDetail} />
<Route path="/articlesList/:tag" component={ArticlesList} />
</Switch>
</Content>
)
}
}