Start a team blog
Start a team blog, invite your team, and start publishing.

How to add state management to a react project without any external library?

Siddharth Vishvanath (Sid)'s photo
Siddharth Vishvanath (Sid)
·May 9, 2019

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?