Open Jobin-S opened 2 years ago
// To store data
localStorage.setItem('Name', 'Rahul');
// To retrieve data
localStorage.getItem('Name');
// To clear a specific item
localStorage.removeItem('Name');
// To clear the whole data stored in localStorage
localStorage.clear();
Ya sure bro, I got your point. Currently, the text in the textarea is lost whenever the page is reloaded, but with implementing this we could prevent that. I will try to implement it soon.
Assign to me i will do it on monday😌
On Sun, 20 Mar 2022, 8:18 am Aswin Asok, @.***> wrote:
Ya sure bro, I got your point. Currently, the text in the textarea is lost whenever the page is reloaded, but with implementing this we could prevent that. I will try to implement it soon.
— Reply to this email directly, view it on GitHub https://github.com/AswinAsok/editr/issues/1#issuecomment-1073153508, or unsubscribe https://github.com/notifications/unsubscribe-auth/APIDFE5SKNFQRGEUCZGJB5TVA2GW3ANCNFSM5RENDTLQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you authored the thread.Message ID: @.***>
It would be better to save the text on localstorage