# TreeGrid.makeState

Creates hydrated TreeGrid state. Uses Tree state and defaults.

## Signatures

```ts
export declare const makeState: typeof Tree.makeState;
```



## Examples

```ts
import * as Effect from "effect/Effect";
import * as TreeGrid from "@typed/ui/TreeGrid";

const program = Effect.scoped(
  Effect.gen(function* () {
    const state = yield* TreeGrid.makeState({});
    const collection = yield* TreeGrid.makeCollection();
    return { state: yield* state, collection: yield* collection };
  }),
);
```
