I am stuck with a very simple problem. I have login form with username, password and button. In my button handler, I try to get the textinput value. But always get undefined
User in the init of class:
constructor() { super() this.state = { email: '' } }
Then in some function:
handleSome = () => { console.log(this.state.email) };
And in the input:
this.setState({email})}/>