redraw/ref

Types

A Ref is a mutable data stored in React, persisted across renders. They allow to keep track of a DOM node, a component data, or to store a mutable variable in the component, outside of every component lifecycle.
Documentation

pub type Ref(a)

Values

pub fn assign(of ref: Ref(a), with value: a) -> Nil

Set the current value of a ref, overriding its existing content.

pub fn current(from ref: Ref(a)) -> a

Get the current value of a ref.

Search Document