0
[SOLVED] How to save my recoil state to localStorage
How do i save my recoil state to localStorage in react.js
3 ответов
+ 1
Thanks for trying to help
0
// To store data
localStorage.setItem('Name', 'EsaKurniawan ');
// To retrieve data
localStorage.getItem('Name');
// To clear a specific item
localStorage.removeItem('Name');
// To clear the whole data stored in localStorage
localStorage.clear();
0
Already solved it