File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ Also `.` is no longer matched in dynamic segments.
51
51
< Route path= " /file/:filename" / >
52
52
53
53
<!-- 0.6 .x -->
54
- < Route path= " /file/:filename.:ext?" / >
54
+ < Route path= " /file/:filename.? :ext?" / >
55
55
56
56
<!--
57
57
or for a looser match to allow for multiple ` .` note that the data
Original file line number Diff line number Diff line change 1
1
API: ` NotFoundRoute ` (component)
2
2
===============================
3
3
4
- When a parent's url partially matches, but none of the children do, a
4
+ When a parent's URL partially matches, but none of the children do, a
5
5
` NotFoundRoute ` will be matched and its handler rendered at any level of
6
6
your route/view hierarchy.
7
7
@@ -29,7 +29,8 @@ Example
29
29
</Routes >
30
30
```
31
31
32
- The last ` NotFoundRoute ` will render inside the ` App ` , the first
32
+ The last ` NotFoundRoute ` will render inside the ` App ` , the first will
33
+ rendering inside of ` Course ` .
33
34
34
35
[ routeProps ] :/docs/api/components/Route.md#props
35
36
Original file line number Diff line number Diff line change @@ -37,15 +37,15 @@ parsed and available by name in your route handler on
37
37
Splats
38
38
------
39
39
40
- Splats are defined with ` * ` and are available in your route handler as
40
+ Splats are defined with ` * ` and will non-greedily match anything. The
41
+ value will be available in your route handler as
41
42
` this.props.params.splat ` . If there are multiple, you'll get an array of
42
43
values.
43
44
44
45
Question Mark
45
46
-------------
46
47
47
- Question marks will optionally match the preceeding segment
48
- non-greedily.
48
+ Question marks will optionally match the preceeding segment.
49
49
50
50
Examples
51
51
--------
You can’t perform that action at this time.
0 commit comments