Why am I writing this? When I started web development in React I stumbled across the idea of making a dark and light mode in a webapp, that is to change the theme of the whole website by a single
Global State Management with React usestate, useContext Hooks and Context API.
It’s been quite a while since react has announced a stable version of context API in its 16.3.0 release. Before that libraries like Redux, MobX were to be used for state management. In this post I will explain with some