# react-action-decorators

> Decorators for helping improve the ergonomics of managing react event handling

Latest version **0.0.4** (published 2018-06-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-action-decorators
pnpm add react-action-decorators
yarn add react-action-decorators
bun add react-action-decorators
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.4 |
| Published | 2018-06-29 |
| First published | 2018-06-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 9.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | NullVoxPopuli |
| Maintainers | nullvoxpopuli |

## Links

- npm: https://www.npmjs.com/package/react-action-decorators
- Homepage: https://github.com/NullVoxPopuli/react-action-decorators
- npm.io page: https://npm.io/package/react-action-decorators

## Recent versions

- 0.0.4 (latest) — 2018-06-29
- 0.0.3 — 2018-06-29
- 0.0.2 — 2018-06-29

## README

# React Action Decorators

Remove menial event handling

## Example

```js
import React from 'react';
import { withTemplateHelpers } from 'react-action-decorators';

@withTemplateHelpers
export default class MyComponent extends Component {
    render() {
        const { mut } = this;
        const { text } = this.state;

        return (
            <div>
              <input value={text} onChange={mut('text')} />
            </div>
        );
    }
}
```

Demo: https://codesandbox.io/s/2067py0prn

## Available Helpers

- `mut`
- `toggle`
- `pipe`

---
_Source: https://npm.io/package/react-action-decorators · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
