React v16.3.0 fixes.

This commit is contained in:
orangemug
2018-05-17 11:24:39 +01:00
parent 79b251d8b9
commit 77da0a6d30
8 changed files with 9 additions and 9 deletions

View File

@@ -18,7 +18,7 @@ class StringInput extends React.Component {
}
}
componentWillReceiveProps(nextProps) {
UNSAFE_componentWillReceiveProps(nextProps) {
this.setState({ value: nextProps.value || '' })
}