Understanding Context API in React: Managing State Efficiently