Function cell

Source
cell<T>(args: CellConstructor<T>): Cell<T>

A light weight storage wrapper around a value that can be subscribed to for changes

import { cell } from "@pistonite/pure/memory";

// type: Cell<boolean>
const myCell = cell({ initial: true });

See Cell