# react-props-decorators

> Define props of React components by ES7 decorators

Latest version **0.2.0** (published 2015-10-14) · MIT license · 0 weekly downloads

## Install

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

## Health

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

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

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2015-10-14 |
| First published | 2015-04-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/react-props-decorators) |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 19 |
| Author | popkirby |
| Maintainers | popkirby |

## Links

- npm: https://www.npmjs.com/package/react-props-decorators
- Repository: https://github.com/popkirby/react-props-decorators
- Issues: https://github.com/popkirby/react-props-decorators/issues
- npm.io page: https://npm.io/package/react-props-decorators

## Dependencies (1)

- [object-assign](https://npm.io/package/object-assign.md) ^4.0.1

## Recent versions

- 0.2.0 (latest) — 2015-10-14
- 0.1.0 — 2015-04-28
- 0.0.1 — 2015-04-20

## README

# react-props-decorators

Define `Component.propTypes` and `Component.defaultProps` by ES7 decorators.

## Installation

```
npm install react-props-decorators
```

## Usage

```js
import React from 'react';
import { propTypes, defaultProps } from 'react-props-decorators';

@propTypes({
  foo: React.PropTypes.string,
  bar: React.PropTypes.number
})
@defaultProps({
  foo: "defaultString",
  bar: 100
})
class Baz extends React.Component {
  /* ... */
}
```

## License

MIT

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