arrow_backBACK TO DRILLS
White BeltuserefPREMIUM
useRef Value Across Two Component Instances
Two copies of the same component both call const countRef = useRef(0). What happens when one component updates countRef.current?
Two copies of the same component both call const countRef = useRef(0). What happens when one component updates countRef.current?