Update book

This commit is contained in:
Greg Johnston 2022-11-22 07:32:05 -05:00
parent cee32a3f8f
commit 8e624d4942
2 changed files with 3 additions and 3 deletions

View file

@ -1,7 +1,7 @@
use leptos::*;
fn main() {
run_scope(|cx| {
run_scope(create_runtime(), |cx| {
// signal
let (count, set_count) = create_signal(cx, 1);

View file

@ -27,7 +27,7 @@ But thats _exactly_ how reactive programming works.
```rust
use leptos::*;
run_scope(|cx| {
run_scope(create_runtime(), |cx| {
let (a, set_a) = create_signal(cx, 0);
let (b, set_b) = create_signal(cx, 0);
let c = move || a() + b();
@ -46,7 +46,7 @@ Hopefully, this makes some intuitive sense. After all, `c` is a closure. Calling
```rust
use leptos::*;
run_scope(|cx| {
run_scope(create_runtime(), |cx| {
let (a, set_a) = create_signal(cx, 0);
let (b, set_b) = create_signal(cx, 0);
let c = move || a() + b();