docs: correct react-router usage for breadcrumb (#33551)

This commit is contained in:
Peach 2022-01-04 21:45:05 +08:00 committed by GitHub
parent 7caa03e2ef
commit 970dd8cc6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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>