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

Method componentWillReceiveProps

src/Input.js:23–28  ·  view source on GitHub ↗
(nextProps)

Source from the content-addressed store, hash-verified

21 }
22
23 componentWillReceiveProps (nextProps) {
24 let value = nextProps.value;
25 if (value !== this.props.value && value !== this.state.value) {
26 this.setState({ value });
27 }
28 }
29
30 handleChange (event) {
31 const { readOnly, type, trigger } = this.props;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected