Variable: createAtom
API / @xmachines/play-atom / createAtom
const createAtom: CreateAtom = createEngineAtom;Defined in: create-atom.ts:47
Builds a writable atom from a value, and a computed atom from a function
Example
const count = createAtom(0);const doubled = createAtom(() => count.get() * 2);