# state

Initial-state factory for constructing a fresh state-machine state object.

`createInitialState()` returns the canonical empty state shape that the [`Store`](https://www.hyperfrontend.dev/docs/libraries/state-machine/store/#api-Store) expects on construction. Use it when wiring up a store directly, when seeding tests, or when resetting a long-lived store back to a known-good initial value.

---

Canonical page: https://www.hyperfrontend.dev/docs/libraries/state-machine/state/
This file: https://www.hyperfrontend.dev/docs/libraries/state-machine/state.md
Documentation index: https://www.hyperfrontend.dev/llms.txt
