Conceptual
Login

Reactive State with ref

ref(value) wraps any value in an object with a single .value property whose getter tracks the reading effect and whose setter triggers dependents; because the wrapper object's identity is stable, the reference can be passed around while the inner value changes reactively.

This Concept is waiting for its first lesson!

ref(value) wraps any value in an object with a single .value property whose getter tracks the reading effect and whose setter triggers dependents; because the wrapper object's identity is stable, the reference can be passed around while the inner value changes reactively.

Are you a teacher? Sign in to start contributing.

Sign In