News for hackers. Stuff that matters.
Re:React Renderer for Three.js by mlsarecmg on Sunday August 15, 2021 @03:59PM (#28191992)
no ref is used as an element in that code.

    const ref = useRef()
    useEffect(() => console.log(ref), [])
    return <div ref={ref} />
will return { current: [dom node] }

    const ref = useRef()
    useEffect(() => console.log(ref), [])
    return <mesh ref={ref} />
will return { current: [mesh node] }

There are no comments on this comment yet.