make hydration more resilient using ids to hydrate

This commit is contained in:
Evan Almloff committed 2023-12-19 16:02:07 -06:00
1 parent cd019db9ef
commit 2d7d721fd6
8 files changed
+255 -324

No files matched your search

@@ -27,9 +27,7 @@ fn app(cx: Scope<AppProps>) -> Element {
let eval = use_eval(cx);
cx.render(rsx! {
div {
"Server state: {state}"
}
div { "Server state: {state}" }
h1 { "High-Five counter: {count}" }
button { onclick: move |_| count += 1, "Up high!" }
button { onclick: move |_| count -= 1, "Down low!" }