Saturday 30 January 2021

How to convert a "raw" DOM Event to a React SyntheticEvent?

I use two libraries, one library which emits "raw" DOM events (lib.dom.d.ts), and one other library which consumes React.SyntheticEvents.

What is the best way to cleanly transform the raw event into a SyntheticEvent?



from How to convert a "raw" DOM Event to a React SyntheticEvent?

No comments:

Post a Comment