feat: re-unify set_state

This commit is contained in:
Jonathan Kelley committed 2022-03-04 14:29:45 -05:00
1 parent 3928856a9b
commit 6c3f5195f4
16 files changed
+199 -136

No files matched your search

+1 -1
View File
@@ -12,7 +12,7 @@ fn main() {
}
fn example(cx: Scope) -> Element {
let (items, _set_items) = use_state(&cx, || {
let items = use_state(&cx, || {
vec![Thing {
a: "asd".to_string(),
b: 10,