When dealing with events in Javascript, how do you grab the value? ReactJS Interview Question

Pass in the Javascript event (e) and call e.target.value

handleChange(e) {
var title = e.target.value;
this.props.changeTitle(title);
}

Comments

Contact Form

Send