Skip to content

Commit d4d5e8b

Browse files
committed
README updated
1 parent dd789ba commit d4d5e8b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,14 @@ Our examples also demonstrate how to implement URL hash routing.
4747
### Simple
4848
```tsx
4949
const 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>

0 commit comments

Comments
 (0)