active_class prop for Router
This commit is contained in:
1 parent
1080ffe52d
commit
9a23ee4612
6 files changed
+52
-8
No files matched your search
@@ -22,6 +22,7 @@ fn simple_test() {
|
||||
cx.render(rsx! {
|
||||
Router {
|
||||
onchange: move |route: RouterService| log::info!("route changed to {:?}", route.current_location()),
|
||||
active_class: "is-active",
|
||||
Route { to: "/", Home {} }
|
||||
Route { to: "blog"
|
||||
Route { to: "/", BlogList {} }
|
||||
|
||||
Reference in new issue
Block a user