Dioxus-7.rs
· 173 B · Rust
Bruto
// dioxus
rsx! {
div { class: "my-class", enabled: true, "Hello, {name}" }
}
// leptos
view! {
<div class="my-class" enabled={true}>
"Hello "
{name}
</div>
}
1 | // dioxus |
2 | rsx! { |
3 | div { class: "my-class", enabled: true, "Hello, {name}" } |
4 | } |
5 | |
6 | // leptos |
7 | view! { |
8 | <div class="my-class" enabled={true}> |
9 | "Hello " |
10 | {name} |
11 | </div> |
12 | } |
13 |