0

[SOLVED] How to save my recoil state to localStorage

How do i save my recoil state to localStorage in react.js

22nd Jan 2022, 11:40 AM
EsaKurniawan
3 Respostas
+ 1
Thanks for trying to help
23rd Jan 2022, 1:54 PM
EsaKurniawan
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();
22nd Jan 2022, 11:48 AM
JaScript
JaScript - avatar
0
Already solved it
23rd Jan 2022, 1:54 PM
EsaKurniawan