3 ms·
Because it brings attention to an interesting concept in a simple way. I'm starting to use React again after a year away using Vue and I've only just started to
by dinkleberg 7y ago
Because it brings attention to an interesting concept in a simple way. I'm starting to use React again after a year away using Vue and I've only just started to play with hooks. So it's cool to see other use cases.
And even if it is a trivial solution, it brings up an interesting idea. Why this article and not the others? Because it was posted at the right time. I'm sure if another one of those articles was posted here (and was written in an equally approachable way) it would do just as well.
- XCSme 7y agoI 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.