arrow_backBACK TO DRILLS
Blue Beltcustom-hookslockPREMIUM

Custom Hooks share logic, not state

Two sibling components both call the same custom Hook useOnlineStatus(), which internally uses useState and useEffect. What actually happens to the Hook state across the two components?

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.