wip: move examples around

This commit is contained in:
Jonathan Kelley committed 2021-07-11 18:39:45 -04:00
1 parent 269e81b0fd
commit 304259d818
24 files changed
+81 -71

No files matched your search

+2 -2
View File
@@ -2,11 +2,11 @@ use dioxus::prelude::*;
fn main() {}
static Example: FC<()> = |cx| {
let (g, set_g) = use_state_classic(cx, || 0);
let g = use_state(cx, || 0);
let v = (0..10).map(|f| {
rsx! {
li {
onclick: move |_| set_g(10)
onclick: move |_| g.set(10)
}
}
});