var classNames = require('classnames'); var Formsy = require('formsy-react'); var React = require('react'); var GeneralError = require('./general-error.jsx'); var validations = require('./validations.jsx').validations; for (var validation in validations) { Formsy.addValidationRule(validation, validations[validation]); } var Form = React.createClass({ getDefaultProps: function () { return { noValidate: true }; }, render: function () { var classes = classNames( 'form', this.props.className ); return ( {this.props.children} ); } }); module.exports = Form;