# react-inject-props-decorator

> ES7 decorator to inject props in your react component methods

Latest version **1.3.3** (published 2017-07-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-inject-props-decorator
pnpm add react-inject-props-decorator
yarn add react-inject-props-decorator
bun add react-inject-props-decorator
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.3.3 |
| Published | 2017-07-24 |
| First published | 2017-07-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Maintainers | casperdeseyne |
| Keywords | react, decorators, es7 |

## Links

- npm: https://www.npmjs.com/package/react-inject-props-decorator
- Repository: https://github.com/Casperd88/react-inject-props-decorator
- Homepage: https://github.com/Casperd88/react-inject-props-decorator#readme
- Issues: https://github.com/Casperd88/react-inject-props-decorator/issues
- npm.io page: https://npm.io/package/react-inject-props-decorator

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.3.3 (latest) — 2017-07-24
- 1.3.2 — 2017-07-24
- 1.3.1 — 2017-07-24
- 1.3.0 — 2017-07-23
- 1.2.0 — 2017-07-23
- 1.1.0 — 2017-07-23
- 1.0.0 — 2017-07-23

## README

# react-inject-props-decorator
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg?style=flat-square)](https://opensource.org/licenses/MIT)
[![npm version](https://img.shields.io/npm/v/react-inject-props-decorator.svg?style=flat-square)](https://www.npmjs.com/package/react-inject-props-decorator)

ES7 decorator to inject props in your react component methods.

## Install

```sh
$ npm i -S react-inject-props-decorator
```
or

```sh
$ yarn add react-inject-props-decorator
```

## Example

```javascript
import React, { Component } from 'react';
import injectProps from 'react-inject-props-decorator';

class HelloUser extends Component {

  @injectProps
  render({firstName, lastName}) {
    return (
      <div>Hello {firstName} {lastName}</div>
    )
  }
}
```
## License

[MIT](LICENSE)

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