remove unneeded code from simple router example
This commit is contained in:
1 file changed
-2
@@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
use dioxus::prelude::*;
|
use dioxus::prelude::*;
|
||||||
use dioxus_router::prelude::*;
|
use dioxus_router::prelude::*;
|
||||||
use dioxus_router_core::history::MemoryHistory;
|
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
dioxus_desktop::launch(App);
|
dioxus_desktop::launch(App);
|
||||||
@@ -12,7 +11,6 @@ fn App(cx: Scope) -> Element {
|
|||||||
use_router(
|
use_router(
|
||||||
&cx,
|
&cx,
|
||||||
&|| RouterConfiguration {
|
&|| RouterConfiguration {
|
||||||
// history: Box::new(MemoryHistory::with_initial_path("/apple").unwrap()),
|
|
||||||
..Default::default()
|
..Default::default()
|
||||||
},
|
},
|
||||||
&|| {
|
&|| {
|
||||||
|
|||||||
Reference in new issue
Block a user