The library allows you to define the structure of you data:
var DataDefinition = ; var personDataDefinition = Name: required: true maxLength: 40 ContactMethod: required: true Phone: { return stateContactMethod == 'Mobile'; } { var phone = statePhone; var validationResult = true; // ... validate phone return validationResult; } ;
which can be wrapped into "wrappedPersonData" object that makes it easier to work with data in React components:
var App = React; var TextInputElement = React;