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