mirror of
https://github.com/leptos-rs/book.git
synced 2025-12-27 10:01:41 -05:00
Update 17_nested_routing.md
This commit is contained in:
@@ -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>
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user