Skip to main content

AutoForm

React is an awesome view framework and is a lot of fun to work with, but if there's one thing about it that can be a little annoying, it's building forms. You have to setup change handlers, bind values, and manage state for each field, and it can get old pretty quickly.

Enter AutoForm! With AutoForm, you create an object defining your form schema, including information such as the field name, data type, initial values, and any validators you wish to run. Wrap your component in a "withForm" higher-order component, pass it your schema, and drop an AutoForm into your render method. Without any further setup, AutoForm generates an entire form based on your schema, with event handlers and state management all handled automagically. Great for quickly getting a form up and running when you're prototyping a new idea!

Project Members: Victor Barrancos

Find the program that fits your life.

Learn about our coding, cybersecurity, and data analytics bootcamps offered on full-time and part-time schedules.