mirror of https://github.com/status-im/reagent.git
parent
972c3e2c5d
commit
73b6912362
|
@ -1,6 +1,6 @@
|
||||||
# Managing state: atoms, cursors, Reactions, and tracking
|
# Managing state: atoms, cursors, Reactions, and tracking
|
||||||
|
|
||||||
Although it is possible to update reagent componetns by remounting the entire component tree with `react.core/render`, Reagent comes with a sophisticated state management library based on `reagent.core/atom`, which allows components to track application state and update only when needed. Reagent also provides cursors, which are like ratoms but can be constructed from portions of one or more other ratoms to limit or expand which ratoms a component watches. Finally, Reagent provides a set of tracking primitives called reactions and a set of utility functions to build more customized state management.
|
Although it is possible to update reagent components by remounting the entire component tree with `react.core/render`, Reagent comes with a sophisticated state management library based on `reagent.core/atom`, which allows components to track application state and update only when needed. Reagent also provides cursors, which are like ratoms but can be constructed from portions of one or more other ratoms to limit or expand which ratoms a component watches. Finally, Reagent provides a set of tracking primitives called reactions and a set of utility functions to build more customized state management.
|
||||||
|
|
||||||
**TODO is this right?**
|
**TODO is this right?**
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue