# state

function in `@dioramajs/effects/testing`

```ts
import { state } from '@dioramajs/effects/testing'
```

The element's `data-dio-state`.

```ts
function state(element: Element): string | null
```

| Parameter | Type | Description |
| --- | --- | --- |
| `element` | `Element` |  |

Defined in [packages/effects/src/testing/gpu.ts](https://github.com/MasterKurosava/diorama/blob/main/packages/effects/src/testing/gpu.ts#L286).
