summaryrefslogtreecommitdiff
path: root/webapp/src/main.rs
blob: baeeff9ee26bc1cc30c1adeda9b53c1be096d02f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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() {
    yew::start_app::<App>();
}