mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-06 00:44:17 +08:00
docs: correct react-router usage for breadcrumb (#33551)
This commit is contained in:
parent
7caa03e2ef
commit
970dd8cc6c
@ -60,8 +60,8 @@ const Home = props => {
|
||||
<Link to="/apps">Application List</Link>
|
||||
</div>
|
||||
<Routes>
|
||||
<Route path="/apps" component={Apps} />
|
||||
<Route render={() => <span>Home Page</span>} />
|
||||
<Route path="/apps" element={<Apps />} />
|
||||
<Route path="*" element={<span>Home Page</span>} />
|
||||
</Routes>
|
||||
<Alert style={{ margin: '16px 0' }} message="Click the navigation above to switch:" />
|
||||
<Breadcrumb>{breadcrumbItems}</Breadcrumb>
|
||||
|
Loading…
Reference in New Issue
Block a user