DEV Community

Luthfi Adilal Mahbub
Luthfi Adilal Mahbub

Posted on

how use Local Storage in React?

Counter.jsx

Card.jsx
Reducer.js
Product.jsx

Hello, my name is Luthfi, so I want to change data in , and files and the changes can be saved in localStortage. Here I use redux so I can save the global state, I create a dispatch handle in the file but when the handle is clicked it can only change it once. I save the global state in the file, can anyone help me?

Top comments (0)