---
name: Map
menu: 1. State Containers
---
import { Props, Prop, ChildrenProps, ChildrenProp } from '../_ui/PropsTable'
import { Map } from '../../dist/react-powerplug.esm'
# Map
The Map component is a generic used for a free key-value logics.
```js
import { Map } from 'react-powerplug'
```
```jsx
```
## Props
Specifies the initial `values` state.
The onChange event of the Map is called whenever the `values` state changes.
Receive state as function. It can also be `render` prop.
## Map Children Props
Your `values` state value
Assigns `value` to `key`
Takes a `key` and `function`, map a function over key's `value`
Get assigned `value` from `key`
Reset `values` to initial state