Closed GakkiiSmile closed 1 year ago
and I think we should also add a "removeEventListener" method.
I believe that is intentional for performance reasons. There are many ways to add multiple listeners, refs are the most common one.
This is internal API for JSX primarily so it is the equivalent to .onclick
etc...
and external users are easily misled into thinking that it is the same as DOM.addEventListener