diff options
Diffstat (limited to 'webapp/src/main.rs')
| -rw-r--r-- | webapp/src/main.rs | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/webapp/src/main.rs b/webapp/src/main.rs index e7a11a9..baeeff9 100644 --- a/webapp/src/main.rs +++ b/webapp/src/main.rs @@ -1,3 +1,22 @@ +use yew::prelude::*; + +#[function_component(App)] +fn app() -> Html { + html! { + <> + <h1>{ "Hello, World" }</h1> + <Card/> + </> + } +} + +#[function_component(Card)] +fn card() -> Html { + html! { + <div class="card" draggable="true" /> + } +} + fn main() { - println!("Hello, world!"); + yew::start_app::<App>(); } |
