for some reason, I\'m getting the error \" React- Cannot read property \'setState\' of undefined\". So this.state is never getting updated with the values that the user inputs.
If you use an arrow function then you won't need to bind.
onNameChange = (e)=> { this.setState({name:e.target.value}); } onPasswordChange = (e) => { this.setState({password:e.target.value}); }