Wednesday, 1 February 2017

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

WHAT OTHERS ARE READING/RELATED TO THIS:

0 comments:

Post a Comment