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()
11 reposts78 likes
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()
11 reposts78 likes