Renders a branch of <Routes> that best matches the current location. Note that these routes do not participate in data loading, actions, code splitting, or any other route module features.
<Routes>
import { Routes, Route } from "react-router"<Routes> <Route index element={<StepOne />} /> <Route path="step-2" element={<StepTwo />} /> <Route path="step-3" element={<StepThree />}></Routes> Copy
import { Routes, Route } from "react-router"<Routes> <Route index element={<StepOne />} /> <Route path="step-2" element={<StepTwo />} /> <Route path="step-3" element={<StepThree />}></Routes>
Renders a branch of
<Routes>
that best matches the current location. Note that these routes do not participate in data loading, actions, code splitting, or any other route module features.