Seitu - Type-Safe Utilities
Core

Store

createStore()

Creates a simple reactive store (minimal TanStack Store-style API).

  • Standalone: use get(), set(value | updater), subscribe(callback) for any state.
  • With schema-store: use as the state backing for a memory provider.

Examples

import {  } from 'seitu'

const  = ({ : 0 })
.( => ({ ..., : . + 1 }))
.( => .())
.() // { count: 0 }

On this page