Skip to content

Commit d19c2c2

Browse files
docs(start/faq): fix grammar (#10205)
1 parent 0e561fe commit d19c2c2

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
@@ -194,6 +194,7 @@
194194
- WalkAlone0325
195195
- willemarcel
196196
- williamsdyyz
197+
- willsawyerrrr
197198
- xavier-lc
198199
- xcsnowcity
199200
- yionr

docs/start/faq.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ Another important reason for using the `element` prop in v6 is that `<Route chil
118118

119119
## How do I add a No Match (404) Route in react-router v6?
120120

121-
In v4 we would have just left the path prop off a route. In v5 we would have wrapped our 404 element in a Route and used `path="*"`. In v6 use the new element prop, pass `path="*"` instead:
121+
In v4 we would have just left the path prop off a route. In v5 we would have wrapped our 404 element in a Route and used `path="*"`. In v6 use `path="*"` and pass the 404 element into the new `element` prop instead of wrapping it:
122122

123123
```js
124124
<Route path="*" element={<NoMatch />} />

0 commit comments

Comments
 (0)