I put 18 event handlers on a React element

added by JavaScript Kicks
1/29/2019 8:30:49 AM

681 Views

If you've ever built a React app you've probably encountered a SyntheticEvent. Good chance it was onChange, but maybe you've been a little more adventurous and it was onKeyDown. In a technical sense a syntheticEvent is a wrapper that's part of React. It takes the place of the native event handlers you might know from plain Javascript.


0 comments