Show HN: React-decoration – A collection of decorators for React Components
github.com
github.com
It is also worth noting that the decorator syntax is still not final, and using it with Babel 6 requires https://github.com/loganfsmyth/babel-plugin-transform-decora.... More details on the decorator deprecation is in that repo.
That seems like a whole different thing. Isn't it worth while?
@autobind onClick() {} is equivalent to : onClick = () => {}
@extractValue onChange(value) {} is equivalent to : onChange({value}) {}
It longer, less efficient, less understandable.
If Javascript continues to admit statement-based syntax, I think decorators are appropriate, because they allow the functional decorator pattern to be applied to function (and method, and class) declarations.