react-easy-schema-form

1.0.2 • Public • Published

react-schema-form

Easy form component with json schema definition

render() {
  <Form name="MyForm" schema="sampleSchema" onSubmit={this.onSubmit} />
}

Sample schema 1:

{
  title: 'Main Title',
  properties: {
    lastname: { type: 'string', id: 'customer.lastname', required: true },
    initials: { type: 'string', id: 'customer.initials', required: true },
    street: { type: 'string', id: 'customer.address.street', required: true },
    city: { type: 'string', id: 'customer.address.city', required: true },
  }
}

/react-easy-schema-form/

    Package Sidebar

    Install

    npm i react-easy-schema-form

    Weekly Downloads

    4

    Version

    1.0.2

    License

    ISC

    Unpacked Size

    598 kB

    Total Files

    11

    Last publish

    Collaborators

    • sixpaq