You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
classTextareaextendsComponent{constructor(props){// lint error!: constructor should be after getDerivedStateFromPropssuper(props)this.state={count: 0,}this.handleChange=this.handleChange.bind(this)}staticgetDerivedStateFromProps(nextProps,prevState){
...
}
...
}
Of course I know it is because of static keyword. How should I change the current rule below?
@ljharb Thanks, but It has nothing to do with the statics of the lifecycle array. I just want to use one of the lifecycle functions w/static getDerivedStateFromProps(nextProps, prevState) and I just don't want to delete the keyword static-method from the order array below.
I defined the rules through the issues below which are confusing to me.
Of course I know it is because of static keyword. How should I change the current rule below?
.eslintrc
The text was updated successfully, but these errors were encountered: