Component should be written as a pure functioneslintreact/prefer-stateless-fun
solution:
Add state to the class component, then
constructor(props) { super(props) this.state = {} }
Component should be written as a pure functioneslintreact/prefer-stateless-fun
solution:
Add state to the class component, then
constructor(props) { super(props) this.state = {} }