docs: move into a fromjs tutorial

This commit is contained in:
Jonathan Kelley committed 2021-06-03 12:02:46 -04:00
1 parent b05331a60b
commit 69f5cc3802
10 files changed
+92 -113

No files matched your search

+1 -1
View File
@@ -34,7 +34,7 @@ enum LightState {
Red,
}
static HelloMessage: FC<()> = |ctx| {
let (color, set_color) = use_state(ctx, || LightState::Green);
let (color, set_color) = use_state(&ctx, || LightState::Green);
let title = match color {
Green => "Green means go",