Skip to content

Commit 587f47d

Browse files
authored
fix: component in routing.md to element (#13123)
* fix: component in routing.md to element * signed contributors.yml
1 parent 6390ad2 commit 587f47d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

contributors.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,3 +355,4 @@
355355
- yuleicul
356356
- zeromask1337
357357
- zheng-chuang
358+
- HK-SHAO

docs/start/library/routing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ You can make a route segment optional by adding a `?` to the end of the segment.
181181
You can have optional static segments, too:
182182

183183
```tsx
184-
<Route path="users/:userId/edit?" component={<User />} />
184+
<Route path="users/:userId/edit?" element={<User />} />
185185
```
186186

187187
## Splats

0 commit comments

Comments
 (0)