mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-12-18 16:43:21 +00:00
30 lines
553 B
Rust
30 lines
553 B
Rust
#![allow(non_snake_case, unused)]
|
|
use dioxus::prelude::*;
|
|
use dioxus_router::prelude::*;
|
|
|
|
#[derive(Routable, Clone)]
|
|
#[rustfmt::skip]
|
|
enum Route {
|
|
#[route("/")]
|
|
Home {},
|
|
}
|
|
|
|
#[inline_props]
|
|
fn Home(cx: Scope) -> Element {
|
|
todo!()
|
|
}
|
|
|
|
// ANCHOR: history_buttons
|
|
fn HistoryNavigation(cx: Scope) -> Element {
|
|
render! {
|
|
GoBackButton {
|
|
"Back to the Past"
|
|
}
|
|
GoForwardButton {
|
|
"Back to the Future" /* You see what I did there? 😉 */
|
|
}
|
|
}
|
|
}
|
|
// ANCHOR_END: history_buttons
|
|
|
|
fn main() {}
|