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

Method componentWillReceiveProps

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

Source from the content-addressed store, hash-verified

17 }
18
19 componentWillReceiveProps(nextProps) {
20 if (nextProps.disabled !== this.props.disabled) {
21 this.setState({ disabled: nextProps.disabled });
22 }
23 }
24
25 disable(elem) {
26 this.setState({ disabled: true, show: elem });

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected