useContext works with the Context API to consume global data (like themes or auth) without manually passing props through every level of the component tree (solving prop drilling).