Get Class Name of Element from MouseEvent Target
In order to silence the typescript warning you can cast EventTarget
to Element
and then use className
property
(event.target as Element).className
In order to silence the typescript warning you can cast EventTarget
to Element
and then use className
property
(event.target as Element).className