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

+2 -2
View File
@@ -11,7 +11,7 @@ fn main() {
}
static App: FC<()> = |cx| {
let (val, set_val) = use_state(&cx, || "asd".to_string());
let (val, set_val) = use_state_classic(&cx, || "asd".to_string());
cx.render(rsx! {
div { class: "max-w-lg max-w-xs bg-blue-800 shadow-2xl rounded-lg mx-auto text-center py-12 mt-4 rounded-xl"
@@ -49,7 +49,7 @@ static Example: FC<()> = |cx| {
};
static UserInput: FC<()> = |cx| {
let (val, set_val) = use_state(&cx, || "asd".to_string());
let (val, set_val) = use_state_classic(&cx, || "asd".to_string());
rsx! { in cx,
div { class: "mb-4"