Skip to content

Commit

Permalink
chore: update react hooks
Browse files Browse the repository at this point in the history
Changing hook componentWillReceiveProps to componentDidUpdate and remove yellowbox
  • Loading branch information
markmesquita committed Apr 12, 2020
1 parent 2a209bd commit d623da6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datepicker.js
Expand Up @@ -50,7 +50,7 @@ class DatePicker extends Component {
this.setModalVisible = this.setModalVisible.bind(this);
}

componentWillReceiveProps(nextProps) {
componentDidUpdate(nextProps) {
if (nextProps.date !== this.props.date) {
this.setState({date: this.getDate(nextProps.date)});
}
Expand Down

0 comments on commit d623da6

Please sign in to comment.