wip: move some examples around
This commit is contained in:
1 parent
cca7c5fc3a
commit
98a09339fd
70 files changed
+111
-117
No files matched your search
@@ -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 {}),
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user