Skip to content

Commit

Permalink
cat-react#8: updated readme with HOC decorator information
Browse files Browse the repository at this point in the history
  • Loading branch information
David Jöch committed Dec 11, 2017
1 parent 79ad393 commit fffdc77
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,16 @@ export default class BasicInput extends React.Component {
}
```

**Note**:
You need the _babel-plugin-transform-decorators_ plugin to use the ``@Input`` decorator.
If you don't want or cannot add this plugin to you webpack config you need to use the HOC as a
function (like the ``connect()`` HOC of Redux).

Example: ``export default input()(BasicInput)``

See the [Babel Documentation](https://babeljs.io/docs/plugins/transform-decorators/) for a detailed guide
about how to add decorators to your application.

## Contribution
The project requires at least the latest stable version of node and npm. You also need to have yarn installed globally.

Expand Down

0 comments on commit fffdc77

Please sign in to comment.