MCPcopy Create free account
hub / github.com/Lobos/react-ui / constructor

Method constructor

src/higherOrders/FormItem.js:13–23  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

11export const enhance = (ComposedComponent) => {
12 class FormItem extends Component {
13 constructor (props) {
14 super(props);
15
16 this.state = {
17 hasError: false,
18 value: getValue(props)
19 };
20
21 this.valueType = getValueType(props.type);
22 this.handleChange = this.handleChange.bind(this);
23 }
24
25 componentWillMount () {
26 const { itemBind } = this.props;

Callers

nothing calls this directly

Calls 2

getValueTypeFunction · 0.85
getValueFunction · 0.70

Tested by

no test coverage detected