DEV Community

Discussion on: Learn about using localStorage in Javascript and React

Collapse
 
gautham495 profile image
Gautham Vijayan

Thank you for including this code here!
I will surely include this in my workflow.

Collapse
 
rxliuli profile image
rxliuli

No, you don't need it. If you use react, you should use react-use, which contains similar useLocalStorage hooks. If you plan to use it outside of react, you only need it.

Thread Thread
 
gautham495 profile image
Gautham Vijayan

I did not know, there was a option like this. I will check it out thanks.