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

#8: updated readme with HOC decorator information #9

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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