You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
good I am using react and preact in a component which is a simple input when using useRef it generates errors
import{Ref,useEffect,useRef,useState}from"preact/hooks";import{styled}from"goober";constVideo=styled('video')``constApp=()=>{constelementRef: Ref<HTMLVideoElement|null>=useRef<HTMLVideoElement|null>(null)useEffect(()=>{constelement: HTMLVideoElement|null=elementRef.current// DOM Refconsole.log(element)},[])return(<div><Videoref={elementRef}></div>)}exportdefaultApp
if I don't use goober it works, but when I incorporate it as in the example, there is no reference
more info
I made a comparison between goober and style in line and I observed differences that perhaps the error occurred
with goober
without goober
The text was updated successfully, but these errors were encountered:
good I am using react and preact in a component which is a simple input when using useRef it generates errors
if I don't use goober it works, but when I incorporate it as in the example, there is no reference
more info
I made a comparison between goober and style in line and I observed differences that perhaps the error occurred
with goober
without goober
The text was updated successfully, but these errors were encountered: