It's a Theme switcher feature. While building this, I learned about React Context API — a powerful feature that allows components to share state without passing props manually at every level of the component tree (avoiding prop drilling).
Most developers only show the final output — clean UI, smooth pages, perfect demos.
But they rarely talk about the bugs they fight daily behind the scenes.
As I started building real-world projects, I faced a lot of bugs — CORS issues, broken APIs, undefined data, stuck loaders,...