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

Method componentWillReceiveProps

src/Textarea.js:30–35  ·  view source on GitHub ↗
(nextProps)

Source from the content-addressed store, hash-verified

28 }
29
30 componentWillReceiveProps(nextProps) {
31 let value = nextProps.value;
32 if (value !== this.props.value && value !== this.state.value) {
33 this.setState({ value });
34 }
35 }
36
37 handleChange (event){
38 this.props.autoHeight && this.autoHeight();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected