Skip to content

Commit 19ac8db

Browse files
authored
fix(docs): correct unclosed Route tag in JSX example (#14406)
1 parent 7fc5295 commit 19ac8db

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

contributors.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,7 @@
337337
- ryanflorence
338338
- ryanhiebert
339339
- saengmotmi
340+
- SailorStat
340341
- samimsu
341342
- sanjai451
342343
- sanketshah19

docs/api/components/Routes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import { Route, Routes } from "react-router";
3333
<Routes>
3434
<Route index element={<StepOne />} />
3535
<Route path="step-2" element={<StepTwo />} />
36-
<Route path="step-3" element={<StepThree />}>
36+
<Route path="step-3" element={<StepThree />} />
3737
</Routes>
3838
```
3939

packages/react-router/lib/components.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1358,7 +1358,7 @@ export interface RoutesProps {
13581358
* <Routes>
13591359
* <Route index element={<StepOne />} />
13601360
* <Route path="step-2" element={<StepTwo />} />
1361-
* <Route path="step-3" element={<StepThree />}>
1361+
* <Route path="step-3" element={<StepThree />} />
13621362
* </Routes>
13631363
*
13641364
* @public

0 commit comments

Comments
 (0)