Basically, I don’t understand why the second arrow function works, and first doesn’t.
//this one doesnt
this.setState = () => {
text: e.target.value,
};
//this one works
this.setState(() => ({
text: e.target.value,
}));