package
React Forms generator for Domain Schema
npm install domain-react-formsGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Estimated unpacked size across 3 packages.
53.8 kB
Includes dependencies.
npm install -g domain-react-forms##Usage
const userFormSchema = new DomainSchema(
class User extends Schema {
__ = { name: 'User' };
id = DomainSchema.Int;
username = {
type: String,
required: true,
validators: [(value) => {
return value.length > 3 ? undefined : 'Must Be more than 3 characters';
}]
};
email = {
type: String,
required: true,
email: true
};
profile = {
Copyright © 2017 SysGears INC. This source code is licensed under the MIT license.