How to add state management to a react project without any external library?
I want to add a global state to my project. I don't want to setup redux or any other frameworks is it possible to write a simple state management system.
My use case is only to show updated data to the user. Like a cart system. When a user adds a product it should be shown immediately. Does anyone know a way to achieve this?