---
name: Set
menu: 1. State Containers
---
import { Props, Prop, ChildrenProps, ChildrenProp } from '../_ui/PropsTable'
import { Set } from '../../dist/react-powerplug.esm'
# Set
The Set component is used to work with an array of **unique** values.
## Usage
```js
import { Set } from 'react-powerplug'
```
```jsx
{({ values, remove, add }) => (
{values.map(tag => (
remove(tag)}>{tag}
))}
)}
```
## Props
Specifies the initial `values` state.
The onChange event of the Set is called whenever the `values` state changes.
Receive state as function. It can also be `render` prop.
## Children Props
Your `values` state value
Add a unique `value` to your values array.
Does nothing if values array already includes a `value`.
Remove a `value` from your `values` array
True if `values` array includes a `value`
Set `values` state to an empty array
Reset `values` to initial state