Module dioxus_core::hooks [−][src]
Useful, foundational hooks that 3rd parties can implement. Currently implemented:
- use_ref
- use_state
- use_reducer
- use_effect
Functions
use_ref | Store a mutable value between renders! To read the value, borrow the ref. To change it, use modify. Modifications to this value do not cause updates to the component Attach to inner context reference, so context can be consumed |
use_state | Store state between component renders! When called, this hook retrives a stored value and provides a setter to update that value. When the setter is called, the component is re-ran with the new value. |