christianalfoni / formsy-react

A form input builder and validator for React JS
MIT License
2.6k stars 436 forks source link

possible change to formsy Decorator #448

Open Jareechang opened 7 years ago

Jareechang commented 7 years ago

Would it be possible to use just @Decorator rather than @Decorator(MyInput) ?

The reference to the Component is already passed in if you are using the ES6/ES7decorator plugin.

@Decorator(MyInput)
class MyInput extends React.Component {
    ...
}

VS 

@Decorator
class MyInput extends React.Component {
    ...
}
rkuykendall commented 6 years ago

I believe this has been solved? Check out the new formsy organization with Formsy 1.0.1: https://github.com/formsy/formsy-react