Skip to content
This repository was archived by the owner on Feb 29, 2024. It is now read-only.

Commit 8cde411

Browse files
authored
Merge pull request #9 from zwenza/feature/djoech/8/update_readme_with_decorator_info
#8: updated readme with HOC decorator information
2 parents 79ad393 + 1e9bfec commit 8cde411

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

+10
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,16 @@ export default class BasicInput extends React.Component {
104104
}
105105
```
106106

107+
**Note**:
108+
You need the _babel-plugin-transform-decorators_ plugin to use the ``@Input`` decorator.
109+
If you don't want or cannot add this plugin to you webpack config you need to use the HOC as a
110+
function (like the ``connect()`` HOC of Redux).
111+
112+
Example: ``export default Input(BasicInput)``
113+
114+
See the [Babel Documentation](https://babeljs.io/docs/plugins/transform-decorators/) for a detailed guide
115+
about how to add decorators to your application.
116+
107117
## Contribution
108118
The project requires at least the latest stable version of node and npm. You also need to have yarn installed globally.
109119

0 commit comments

Comments
 (0)