Update 17_nested_routing.md

This commit is contained in:
Greg Johnston
2025-02-05 19:23:28 -05:00
committed by GitHub
parent c62fe2a001
commit 2a7dcb9b6c

View File

@@ -70,9 +70,9 @@ I actually need to add a fallback route
```rust
<Routes>
<ParentRoute path="/users" view=Users>
<Route path=":id" view=UserProfile/>
<Route path="" view=NoUser/>
<ParentRoute path=path!("/users") view=Users>
<Route path=path!(":id") view=UserProfile/>
<Route path=path!("") view=NoUser/>
</ParentRoute>
</Routes>
```