mirror of
https://github.com/DioxusLabs/dioxus
synced 2025-01-01 23:38:45 +00:00
29 lines
490 B
Rust
29 lines
490 B
Rust
|
#![allow(non_snake_case, unused)]
|
||
|
|
||
|
use dioxus::prelude::*;
|
||
|
use dioxus_router::prelude::*;
|
||
|
|
||
|
#[derive(Routable, Clone)]
|
||
|
enum Route {
|
||
|
#[route("/")]
|
||
|
Home {},
|
||
|
}
|
||
|
|
||
|
#[inline_props]
|
||
|
fn Home(cx: Scope) -> Element {
|
||
|
todo!()
|
||
|
}
|
||
|
|
||
|
fn main() {}
|
||
|
|
||
|
// ANCHOR: component
|
||
|
fn GoToDioxus(cx: Scope) -> Element {
|
||
|
render! {
|
||
|
Link {
|
||
|
target: NavigationTarget::External("https://dioxuslabs.com".into()),
|
||
|
"ExternalTarget target"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
// ANCHOR_END: component
|