New React SmartForm package


#1

Hey all,

I just published my first real package: https://atmospherejs.com/ffxsam/react-smartform

I wanted to have a smart, reusable set of form & form elements that I could use throughout an app I’m working on. It’s still a work in progress of course! Ideas and contributions are welcome.


#2

This looks very interesting. I’ve been wondering about an alternative to Autoform for React.


#3

Is there a way to run the validations once they’re submitted on the server too?


#4

Thanks @ciwolsey! Validations are client-side only. But you can do your own validations of course, on the server side, e.g.:

Meteor.methods({
  formSubmitted(formData) {
    check(formData, Object);
    check(formData.firstName, String);
    // etc.
  }
});