wip: move some examples around

This commit is contained in:
Jonathan Kelley committed 2021-07-07 16:19:10 -04:00
1 parent cca7c5fc3a
commit 98a09339fd
70 files changed
+111 -117

No files matched your search

+1 -1
View File
@@ -25,7 +25,7 @@ fn main() {
}
static App: FC<()> = |cx| {
let (url, set_url) = use_state(&cx, || "");
let (url, set_url) = use_state(cx, || "");
let body = match *url {
"community" => rsx!(in cx, Community {}),
+1 -1
View File
@@ -34,7 +34,7 @@ enum LightState {
Red,
}
static HelloMessage: FC<()> = |cx| {
let (color, set_color) = use_state(&cx, || LightState::Green);
let (color, set_color) = use_state(cx, || LightState::Green);
let title = match color {
Green => "Green means go",