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

Method componentWillReceiveProps

src/components/DateInput.jsx:103–110  ·  view source on GitHub ↗
(nextProps)

Source from the content-addressed store, hash-verified

101 }
102
103 componentWillReceiveProps(nextProps) {
104 const { dateString } = this.state;
105 if (dateString && nextProps.displayValue) {
106 this.setState({
107 dateString: '',
108 });
109 }
110 }
111
112 componentDidUpdate(prevProps) {
113 const { focused, isFocused } = this.props;

Calls

no outgoing calls

Tested by

no test coverage detected