mirror of https://github.com/status-im/reagent.git
Merge pull request #398 from romankrru/docs-managing-state-fix-typo
Docs: Fix typo
This commit is contained in:
commit
09adb7e193
|
@ -176,6 +176,7 @@ Reactions are what give `r/atom`, `r/cursor`, and function `r/cursor` and `r/wra
|
|||
* `derefed` **TODO unclear**
|
||||
|
||||
Reactions are very useful when
|
||||
|
||||
* You need a way in which components only updates based on part of the ratom state. (reagent/cursor can also be used for this scenario)
|
||||
* When you want to combine two `ratoms` and produce a result
|
||||
* You want the component to use some transformed value of `ratom`
|
||||
|
@ -196,7 +197,7 @@ Here's an example:
|
|||
[:div "component-using-make-reaction"]
|
||||
[:div "Sate 2 - var a : " @app-var2-reaction]])
|
||||
|
||||
```
|
||||
```
|
||||
|
||||
The below example uses `reagent.ratom/reaction` macro, which provides syntactic sugar around creating reaction using `make-reaction`
|
||||
|
||||
|
|
Loading…
Reference in New Issue