forked from yewstack/yew
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.rs
29 lines (28 loc) · 733 Bytes
/
main.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
use yew::prelude::*;
// #[function_component]
// fn App() -> Html {
// let state = use_state(|| 0);
//
// let incr_counter = {
// let state = state.clone();
// Callback::from(move |_| state.set(*state + 1))
// };
//
// let decr_counter = {
// let state = state.clone();
// Callback::from(move |_| state.set(*state - 1))
// };
//
// html! {
// <>
// <p @disabled={false}> {"current count: "} {*state} </p>
// <button onclick={incr_counter}> {"+"} </button>
// <button onclick={decr_counter}> {"-"} </button>
// </>
// }
// }
fn main() {
let _d = html! {
<div class={format!("fail{}", "")}></div>
};
}