1.0.2 • Published 6 years ago

react-easy-schema-form v1.0.2

Weekly downloads
2
License
ISC
Repository
github
Last release
6 years ago

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 },
  }
}