arrow_backBACK TO DRILLS
Blue Beltcustom-hooksPREMIUM
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?