API reference / @evolu/common / Ref
Ref
A mutable reference for managing state
Interfaces
Interface | Description |
---|---|
Ref | Ref provides a simple API to hold and update a value, similar to a "ref" in functional programming or React. It exposes methods to get, set, and modify the current state. |
Functions
Function | Description |
---|---|
createRef | Creates a Ref with the given initial state. |