remove derivedStateFromProps

This commit is contained in:
SpikeHD
2022-06-03 17:26:12 -07:00
parent 1ac4fd5a63
commit bbff2e51c7
2 changed files with 2 additions and 6 deletions

View File

@@ -30,10 +30,6 @@ export default class TextInput extends React.Component<IProps, IState> {
}
}
static getDerivedStateFromProps(props: IProps, state: IState) {
return { value: props.value || '' }
}
async componentDidMount() {
if (this.props.initalValue) {
this.setState({