Re:Show HN: A Simple LocalStorage Hook in React
by funemployed on Wednesday November 06, 2019 @11:18AM
(#21463994)
browser compatibility/other edge case handling would be one decent reason to utilize a package for otherwise straightforward implementations. The MDN docs have a helpful walkthrough for feature detecting localStorage that would make a useful addition to your library. https://developer.mozilla.org/en-US/docs/Web/API/Web_Storage...
[ Parent
| on HN ]