Reference

createStore

Creates a reactive object store with patch updates, replacement, transactions, selectors, subscriptions, and optional instrumentation. The store keeps state in a `ReadonlyCell`; selectors should be disposed when their consumer scope ends.

Signature

function createStore<T>(initial: T, options: StoreOptions<T>): Store<T>