API reference / @evolu/common / Ref

Ref

A mutable reference for managing state

Interfaces

InterfaceDescription
RefRef 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

FunctionDescription
createRefCreates a Ref with the given initial state.

Was this page helpful?