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

Commit

Permalink
Merge pull request #9 from zwenza/feature/djoech/8/update_readme_with…
Browse files Browse the repository at this point in the history
…_decorator_info

#8: updated readme with HOC decorator information
  • Loading branch information
dsumer committed Jan 29, 2018
2 parents 79ad393 + 1e9bfec commit 8cde411
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 8cde411

Please sign in to comment.