# zustand

> Zustand: state lives in store files, and components read it through a selector.

Zustand: state lives in store files, and components read it through a selector. It requires [`javascript`](/reference/configurations/javascript/).

## Settings

| Setting                                                             | What it sets                       |
| ------------------------------------------------------------------- | ---------------------------------- |
| [`zustand.store_files`](/reference/gspot-toml/#zustand.store_files) | The files that may create a store. |

## Selected when

gspot selects it in a scope with dependencies `zustand`.

## Rules for coding agents

| Rule file                                                | Installed when |
| -------------------------------------------------------- | -------------- |
| `.gspot/configurations/library/zustand/rules/ZUSTAND.md` | Always         |
