File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -47,14 +47,14 @@ Our examples also demonstrate how to implement URL hash routing.
4747### Simple
4848``` tsx
4949const App = () => <Router >
50- <Route path = " /(.*) " >
50+ <Route path = " /*wildcard " >
5151 <Route path = " path1" >{ child1 } </Route >
5252 { /* "path2/:param" and "path2/(.*)" are overlapped, both are rendered */ }
5353 { /* this component has params.param === ...rest of path... */ }
5454 <Route path = " path2/:param" >{ child21 } </Route >
5555 { /* this component has params[0] === ...rest of path... */ }
56- <Route path = " path2/(.*) " >{ child22 } </Route >
57- <Route path = " path3/(.*) " >{ child3 } </Route >
56+ <Route path = " path2/*child " >{ child22 } </Route >
57+ <Route path = " path3/*child " >{ child3 } </Route >
5858 { /* this is a fallback route */ }
5959 <Route >{ fallback } </Route >
6060 </Route >
You can’t perform that action at this time.
0 commit comments