1 min readDec 5, 2019
If you care about the event that’s being passed in onChange for various reasons, you can persist it before using the debounced onChange.
onChangePersistedDebounced = e => {
const {onChangeDebounced} = this.state;
e.persist && e.persist();
onChangeDebounced(e);
};