Re:React Renderer for Three.js
by sswu on Sunday August 15, 2021 @03:53PM
(#28191935)
The TypeScript example does feel a little weird. I've used this library successfully with React + TypeScript with the following pattern:
As others have mentioned, the ref will typically attach by the time a `useEffect` hook is called, but for safety it's nice to have the null check.
[ Parent
| on HN ]
There are no comments on this comment yet.