Closed Narayana212 closed 1 year ago
The current code uses the old-style ref callback ref={(node) => { nodeRef.current = node; }}, which is still functional but can be simplified using the useRef hook directly:
The current code uses the old-style ref callback ref={(node) => { nodeRef.current = node; }}, which is still functional but can be simplified using the useRef hook directly: