bool, and these signals all implement Fn() - class:red=move||red.get() - class:right=move||right.get() - class:italics=move||italics.get() - class:smallcaps=move||smallcaps.get() + class:red=red + class:right=right + class:italics=italics + class:smallcaps=smallcaps > "Lorem ipsum sit dolor amet."
diff --git a/examples/portal/src/lib.rs b/examples/portal/src/lib.rs index 200a4d2244..c95b34978c 100644 --- a/examples/portal/src/lib.rs +++ b/examples/portal/src/lib.rs @@ -11,7 +11,7 @@ pub fn App() -> impl IntoView { Show Overlay -You submitted: {move || format!("{:?}", action.input().get())}
The result was: {move || format!("{:?}", action.value().get())}
Total rows: {move || row_count.get()}
+Total rows: {row_count}
You submitted: {move || format!("{:?}", action.input().get())}
The result was: {move || format!("{:?}", action.value().get())}
Total rows: {move || row_count.get()}
+Total rows: {row_count}
Length is {move||result.get()}
+Length is {result}
} } @@ -313,8 +313,6 @@ pub fn RkyvExample() -> impl IntoView { view! {Using rkyv
encoding
- -
-{move||input.get()}
+{input}
{move||result.get()}
+{result}
} } diff --git a/examples/slots/src/lib.rs b/examples/slots/src/lib.rs index 2577681c81..a0a85ab859 100644 --- a/examples/slots/src/lib.rs +++ b/examples/slots/src/lib.rs @@ -49,7 +49,7 @@ pub fn App() -> impl IntoView { view! { - " "{move||count.get()}" is " + " "{count}" is "