samedi 10 octobre 2020

The last 'SetItem' is not saved and clears when the page is Refresh

Every time you click on the arrow, the React state is saved in the localٍ storage But when you refresh the page, the value decreases 1 because the last change is not saved to the localٍ storage

If you modify several items, the problem will be in the last pressed item

The Code is here => https://codesandbox.io/s/solitary-currying-jb2gx?file=/src/App.js




Aucun commentaire:

Enregistrer un commentaire