arrow_backBACK TO DRILLS
White BeltusereflockPREMIUM

refs are local per component instance

Two copies of the same component both call const countRef = useRef(0). What happens when one component updates countRef.current?

lock

This Drill is Locked

This is a premium drill. Continue on to the next free drill in the sequence.

CONTINUE DRILLarrow_forward
BugDojo
BlogFAQ

© 2026. Carved in code.