React observing

set

set

Overview

Set a new value to a observable object.

Examples

const counter = observe(0)
...
set(counter, 1)
set(counter, oldCounter => oldCounter + 1)
Edit this page on GitHub

On this page