Waiting AutoForm For React "OR" Using Any React Form Pakcage!

I would like to use Meteor 1.3 with React.
Should be waiting AutoForm for React or using any React Form such as Formsy, ....
Please advice…

Try react formal with yup.

I’ve been using formsy react, you can wrap your exports in the Formsy HOC to pass formsy’s methods as props, instead of using the mixin :slightly_smiling:

thanks for all reply.
I used to hear Formsy, but never try.
Excuse me, I don’t understand you can wrap your exports in the Formsy HOC.......
Could explain?

Using HOC (Higher-order Components)

    import {HOC} from 'formsy-react';

    class MyInput extends React.Component {
      render() {
        return (
          <div>
            <input value={this.props.getValue()} onChange={(e) => this.props.setValue(e.target.value)}/>
          </div>
        );
      }
    };
    export default HOC(MyInput);

Using Mixins

var MyInput = React.createClass({
  mixins: [Formsy.Mixin],

  render: function () {
    return (
      <div>
        <input type="text" value={this.getValue()}onChange={(e) => this.setValue(e.target.value)}/>
      </div>
    );
  }
});
2 Likes

Look great, I will soon :blush:

I’m using Formsy as well, seems to work so far.