dioxus/docs/router/examples/external_link.rs
2023-07-25 18:14:48 -07:00

28 lines
451 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 {
to: "https://dioxuslabs.com",
"ExternalTarget target"
}
}
}
// ANCHOR_END: component