本页还没有译文
本页 13 段还没译成日本語,下面显示的是英文原文。Routes
还没翻译译自英文(reactrouter.com)本页 13 段都还没译
Routes
Framework Data Declarative
Summary
Renders a branch of <Route>s that best matches the current
location. Note that these routes do not participate in data loading,
action, code splitting, or
any other route module features.
import { Route, Routes } from "react-router";
<Routes>
<Route index element={<StepOne />} />
<Route path="step-2" element={<StepTwo />} />
<Route path="step-3" element={<StepThree />} />
</Routes>Signature
function Routes({
children,
location,
}: RoutesProps): React.ReactElement | nullProps
children
Nested Route elements
location
The Location to match against. Defaults to the current location.
AI 翻译查看英文原文