wip: more examples

This commit is contained in:
Jonathan Kelley committed 2021-07-06 12:13:00 -04:00
1 parent 904b26f711
commit 11f89e5d33
27 files changed
+64 -57

No files matched your search

+1 -1
View File
@@ -13,7 +13,7 @@ fn main() {
// this is a component
static Example: FC<()> = |cx| {
let (event, set_event) = use_state(&cx, || None);
let (event, set_event) = use_state_classic(&cx, || None);
let handler = move |evt| {
set_event(Some(evt));