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

Method componentWillReceiveProps

src/Switch.js:18–22  ·  view source on GitHub ↗
(nextProps)

Source from the content-addressed store, hash-verified

16 }
17
18 componentWillReceiveProps(nextProps) {
19 if (nextProps.checked !== this.props.checked) {
20 this.setState({ checked: nextProps.checked });
21 }
22 }
23
24 render(){
25 const { status } = this.props

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected