mirror of
https://github.com/leptos-rs/leptos
synced 2024-09-20 14:32:00 +00:00
docs: update working_with_signals.md (#1785)
Pulled the option number 2 out of the blockquote
This commit is contained in:
parent
de9fb5e382
commit
c5c79234f1
1 changed files with 2 additions and 2 deletions
|
@ -108,8 +108,8 @@ let memoized_double_count = create_memo(move |_| count() * 2);
|
|||
```
|
||||
|
||||
> For guidance on whether to use a derived signal or a memo, see the docs for [`create_memo`](https://docs.rs/leptos/latest/leptos/fn.create_memo.html)
|
||||
>
|
||||
> **2) C is a function of A and some other thing B.** Create signals for A and B and a derived signal or memo for C.
|
||||
|
||||
**2) C is a function of A and some other thing B.** Create signals for A and B and a derived signal or memo for C.
|
||||
|
||||
```rust
|
||||
let (first_name, set_first_name) = create_signal("Bridget".to_string());
|
||||
|
|
Loading…
Reference in a new issue