MCPcopy Index your code
hub / github.com/Lobos/react-ui / constructor

Method constructor

src/FormControl.js:22–34  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

20
21class FormControl extends Component {
22 constructor (props) {
23 super(props);
24 this.state = {
25 validations: ''
26 };
27
28 // for check props
29 this.items = {};
30 this.itemBind = this.itemBind.bind(this);
31 this.itemUnbind = this.itemUnbind.bind(this);
32 this.itemChange = this.itemChange.bind(this);
33 this.handleValidate = this.handleValidate.bind(this);
34 }
35
36 componentWillMount () {
37 this.setItems(this.props);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected