How to use the rc-form/lib/createForm function in rc-form

To help you get started, we’ve selected a few rc-form examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Kamahl19 / react-starter / rnmobile / src / common / services / Form.js View on Github external
export const createForm = options => {
  const formWrapper = createRcForm({
    fieldNameProp: 'id',
    fieldMetaProp: FIELD_META_PROP,
    ...options,
  });

  return DecoratedComponent =>
    formWrapper(
      class Form extends Component {
        static propTypes = {
          form: PropTypes.object.isRequired,
        };

        static childContextTypes = {
          form: PropTypes.object.isRequired,
        };

rc-form

React High Order Form Component

MIT
Latest version published 4 years ago

Package Health Score

53 / 100
Full package analysis