Skip to content

Commit

Permalink
docs: typo in 01_basic_component.md (leptos-rs#1412)
Browse files Browse the repository at this point in the history
typo fix
  • Loading branch information
DougAnderson444 authored Jul 22, 2023
1 parent 06164d3 commit 1d9931a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/book/src/view/01_basic_component.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ view! { cx,
Remember—and this is _very important_—only functions are reactive. This means that
`{count}` and `{count()}` do very different things in your view. `{count}` passes
in a function, telling the framework to update the view every time `count` changes.
`{count()}` access the value of `count` once, and passes an `i32` into the view,
`{count()}` accesses the value of `count` once, and passes an `i32` into the view,
rendering it once, unreactively. You can see the difference in the CodeSandbox below!

Let’s make one final change. `set_count(3)` is a pretty useless thing for a click handler to do. Let’s replace “set this value to 3” with “increment this value by 1”:
Expand Down

0 comments on commit 1d9931a

Please sign in to comment.