arrow_backBACK TO DRILLS
White Beltuseref
Displaying a Ref Value in JSX
A component stores a counter in counterRef.current and updates it inside a click handler, but renders {counterRef.current} in JSX. What happens after clicking the button?
A component stores a counter in counterRef.current and updates it inside a click handler, but renders {counterRef.current} in JSX. What happens after clicking the button?