Flow is giving me the following error whenever I try to use this.state in my code:
this.state
object literal: This type is incompatible with un
You need to define a type for the state property in order to use it.
class ComponentA extends Component { state: { isExpanded: Boolean }; constructor(props) { super(props); this.state = { isExpanded: false }; } }