usehooks
usehooks copied to clipboard
Update localStorage
Previously, valueToStore
are calculated directly using storedValue
returned by useState
.
I updated it using callback instead of that.
https://reactjs.org/docs/react-component.html#setstate
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Updated |
---|---|---|---|
usehooks | ✅ Ready (Inspect) | Visit Preview | Aug 5, 2022 at 8:34AM (UTC) |