Sign in
Log inSign up

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?

Hassle-free blogging platform that developers and teams love.
  • Docs by Hashnode
    New
  • Blogs
  • AI Markdown Editor
  • GraphQL APIs
  • Open source Starter-kit

© Hashnode 2025 — LinearBytes Inc.

Privacy PolicyTermsCode of Conduct