How is the value of the “e.target.value” generated? Is it similar to DOM event properties?
handleChange(e) {
const name = e.target.value;
this.props.onChange(name);
}
How is the value of the “e.target.value” generated? Is it similar to DOM event properties?
handleChange(e) {
const name = e.target.value;
this.props.onChange(name);
}
Hello!
e
is a SyntheticEvent
(https://reactjs.org/docs/events.html) created by ReactJS. It is mostly compatible with browser event. See also https://reactjs.org/docs/handling-events.html.