DEV Community

loading...

Discussion on: What is localStorage?

Collapse
tolentinoel profile image
Ellaine Tolentino Author

I tried to use locaStorage as a global state on a project, and it doesn’t automatically reflect the updates or changes in state unlike using Redux or there was somewhat of a delay since it needs to getItem then setItem and then return it.

Forem Open with the Forem app