---
jsApi: true
title: "[F] createStateAccessors"

---
```ts
createStateAccessors(
   stateMaps, 
   stateSets, 
   projector?): Object
```

## Parameters

| Parameter | Type |
| :------ | :------ |
| `stateMaps` | `Map`<`symbol`, `StateMap`\> |
| `stateSets` | `Map`<`symbol`, `StateSet`\> |
| `projector`? | [`Projector`](../interfaces/Projector.md) |

## Returns

`Object`

| Member | Type |
| :------ | :------ |
| `stateMap` | <`T`\>(`key`) => `StateMapView`<`T`\> |
| `stateSet` | (`key`) => `StateSetView` |
