Post

This is the craziest hook I’ve ever seen const [ref1, ref2, ref3] = useMultipleRefs() The hook returns an iterator - destructuring calls the iterator - on each iteration, the hook returns a useRef()

if you're destructuring there's no real risk of this happening you could invoke the hook in other ways but not a practical concern

0 reposts0 likes

No replies yet.