Wednesday, 1 February 2017

// // Leave a Comment

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);
}

0 comments:

Post a comment