mirror of
https://github.com/maputnik/editor.git
synced 2025-12-24 23:20:00 +00:00
Removed componentWillUpdate
This commit is contained in:
@@ -18,8 +18,10 @@ class StringInput extends React.Component {
|
||||
}
|
||||
}
|
||||
|
||||
UNSAFE_componentWillReceiveProps(nextProps) {
|
||||
this.setState({ value: nextProps.value || '' })
|
||||
static getDerivedStateFromProps(props, state) {
|
||||
return {
|
||||
value: props.value || ''
|
||||
};
|
||||
}
|
||||
|
||||
render() {
|
||||
|
||||
Reference in New Issue
Block a user