event.persist mdn code example
Example: event.persist()
handleClick(event) {
event.persist();
this.setState((prevState) => ({
foo: prevState.foo + event.pageX
}));
}
handleClick(event) {
event.persist();
this.setState((prevState) => ({
foo: prevState.foo + event.pageX
}));
}