Re:Persisting React State in LocalStorage
by XCSme on Friday February 28, 2020 @02:38PM
(#22445643)
I think my opinion is biased because I know React pretty well and have a lot of JS experience so the article feels just like explaining syntax and does not cover important edge cases (eg. what if you have localStorage disabled? your hook will crash!).
LE: I actually tested the site with Cookies disabled and the entire site crashed due to the localStorage calls.
LE: I actually tested the site with Cookies disabled and the entire site crashed due to the localStorage calls.