My JavaScript object has a state declared like this:
state = {isFiltered: false}
I have a method changeState() that basically does the following:
this.setState({isFiltered: true});
However, this will give me an error that says that "setState" is not a function. How can I alter this flag from within a method?
Edit: I wasn't understanding how to bind properly. I'll accept a solution as soon as SOF lets me