#![allow(clippy::needless_update)]
use appy::{components::*, hooks::*, types::*, *};
#[main_window]
pub fn app() -> Elements {
let v = use_state(|| 1);
let hover_state = use_hover_state_ref();
let on_button_click = rc_with_clone!([v], move || {
//println!("set: {}",*v);
v.set(*v + 1);
});
let s = format!("Hello: {}", *v);
let c = match *hover_state {
HoverState::Normal => 0x808080,
HoverState::Active => 0x404040,
HoverState::Hover => 0xc0c0c0,
};
apx! {
}
}