You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
varclassnames=require('classnames');varReactIz=require('react-iz');varMyForm=React.createClass({mixins: [LinkedStateMixin],render(): function(){varrules={ ... }return<ReactIzdata={this.state}rules={rules}render={(props)=>{// in this case, we want to add `has-error` class// to our input field if `username` input has errorvarusernameClass=props.hasError('username')
? 'form-control'
: 'form-control has-error'return(<inputtype="text"className={usernameClass}valueLink={this.linkState('username')});}};/>
}});
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: