Skip to content

Commit e0545b7

Browse files
committed
docs: ✏️ improve router docs
1 parent 9f44a2d commit e0545b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/en/routing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,14 @@ can be either regular JSX children or a FaCC, render prop, or component prop.
9292
- `ns` — optional, string, namespace of the router.
9393

9494

95-
`match` prop can be a string, `RegExp` of a `function.
95+
`match` prop can be a string, `RegExp` of a `Function`.
9696

9797
- if `string`, it is converted to a regular expression with `^` prepended, which means it has to match the route starting from
9898
the very first character. For example, `/users` -> `/^(\/users)/`. If the `exact` prop is on, also `$` appended to the regular
9999
expression, which means the regular expression has to match the route exactly. For example, `/users` -> `/^(\/users)$`.
100100
- if `RegExp`, the specified regular expression will be used to match the current `route`, the resulting matches array will be
101101
returned, if any.
102-
- if `function` is provided, it has to return an array of strings on a match.
102+
- if `Function` is provided, it has to return an array of strings on a match.
103103

104104

105105
### `<Match>`

0 commit comments

Comments
 (0)