E
Size: a a a
E
SA
SC
SA
SC
G
documentMousemoveHandler()
создается новый на каждый рендер, то почему document.addEventListener('mousemove', documentMousemoveHandler);
и document.removeEventListener('mousemove', documentMousemoveHandler);
ссылаются на один и тот же documentMousemoveHandler()
getEventListeners(document)
и нет mousemove
SC
MK
ущ
IA
OR
IN
IA
IN
ΓΧ
d
const Button = forwardRef<
HTMLButtonElement | HTMLAnchorElement,
IButton
>
<a href={href} ref={ref}>{children}</a>
TS2322: Type 'ForwardedRef<HTMLAnchorElement | HTMLButtonElement>' is not assignable to type 'LegacyRef<HTMLAnchorElement>'.
TS2322: Type 'ForwardedRef<HTMLAnchorElement | HTMLButtonElement>' is not assignable to type 'LegacyRef<HTMLButtonElement>'.
a
Ⓣ
S
const Button = forwardRef<
HTMLButtonElement | HTMLAnchorElement,
IButton
>
<a href={href} ref={ref}>{children}</a>
TS2322: Type 'ForwardedRef<HTMLAnchorElement | HTMLButtonElement>' is not assignable to type 'LegacyRef<HTMLAnchorElement>'.
TS2322: Type 'ForwardedRef<HTMLAnchorElement | HTMLButtonElement>' is not assignable to type 'LegacyRef<HTMLButtonElement>'.
D