Rust yew starter

This commit is contained in:
timmypidashev
2023-03-11 20:22:24 -08:00
parent 32c0b774a2
commit eeee364c93
5 changed files with 886 additions and 2 deletions

View File

@@ -1,3 +1,12 @@
fn main() {
println!("Hello, world!");
use yew::prelude::*;
#[function_component(App)]
fn app() -> Html {
html! {
<h1>{ "Hello, World!" }</h1>
}
}
fn main() {
yew::Renderer::<App>::new().render();
}