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

Method componentWillReceiveProps

src/Datepicker/TimeSet.js:17–21  ·  view source on GitHub ↗
(nextProps)

Source from the content-addressed store, hash-verified

15 }
16
17 componentWillReceiveProps (nextProps) {
18 if (nextProps.value !== this.props.value) {
19 this.setState({ value: nextProps.value });
20 }
21 }
22
23 add () {
24 let value = this.state.value,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected