# useFields

This hook is used to set state for multiple values in a dictionary. It returns 4 items - a getter, setter and the traditional object and a setter for the object. The first getter and setter are to read and write to individual properties.

## Installation

```tsx
import { useFields } from 'uxp/components';
```

## Signature

```tsx
function useFields(defaultValues: any): FieldsHook
```

## Related Types

* [FieldsHook](https://help.iviva.com/uxp/v5/additional-resources/types/fieldshook)
