Comment Comment by tills13 Is there an error in the examples? You have const mesh = useRef() ... <mesh ref={mesh} ... You'll be rendering an undefined element (before the ref has a chance to attach).Also, the TypeScript example makes me head hurt. const ref = useRef(null!) Ah, yes. A non-null null literal. parent tills13 5 years ago
Also, the TypeScript example makes me head hurt.
Ah, yes. A non-null null literal.