diff --git a/README.md b/README.md index d2f1ae9..877d0fb 100644 --- a/README.md +++ b/README.md @@ -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.