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

@@ -29,7 +29,7 @@ class JSONEditor extends React.Component {
}
}
componentWillReceiveProps(nextProps) {
UNSAFE_componentWillReceiveProps(nextProps) {
this.setState({
code: JSON.stringify(nextProps.layer, null, 2)
})