wip: todomvc

This commit is contained in:
Jonathan Kelley committed 2021-03-29 12:31:47 -04:00
1 parent 0bcff1f88e
commit ce33031519
22 files changed
+753 -203

No files matched your search

+2 -2
View File
@@ -12,10 +12,10 @@ fn main() {
// this is a component
static Example: FC<()> = |ctx, _props| {
let event = use_state(&ctx, || None);
let (event, set_event) = use_state(&ctx, || None);
let handler = move |evt: MouseEvent| {
event.set(Some(evt));
set_event(Some(evt));
};
log::info!("hello world");