News for hackers. Stuff that matters.
Re:Use Hooks – A Collection of Reusable React Hooks by acemarke on Thursday December 13, 2018 @10:34PM (#18678243)
If you haven't yet, I'd encourage you to seriously read through the hooks docs [0], as well as Dan Abramov's recent post discussing why they settled on this API design [1].

[0] https://reactjs.org/docs/hooks-intro.html

[1] https://overreacted.io/why-do-hooks-rely-on-call-order/

Re:Use Hooks – A Collection of Reusable React Hooks by duncan-donuts on Thursday December 13, 2018 @10:41PM (#18678283)
I’ll dig into them. I skimmed them when hooks were first announced and felt like it was just a way to bolt on state to functional components. I should really revisit the intent of hooks.
Re:Use Hooks – A Collection of Reusable React Hooks by BigJono on Thursday December 13, 2018 @11:36PM (#18678503)
The hooks docs are complete garbage. They don't explain anything properly and they use dumbed down language that ambiguates important details, in an attempt to make them more "accessible" to beginners (that somehow are too stupid to understand classes but can magically grasp these far more advanced concepts?).

Dan's blog post is much better, in comparison. Start with that maybe.

Re:Use Hooks – A Collection of Reusable React Hooks by acemarke on Friday December 14, 2018 @12:11AM (#18678618)
If you think the docs can be improved, please submit PRs:

https://github.com/reactjs/reactjs.org

Re:Use Hooks – A Collection of Reusable React Hooks by BigJono on Friday December 14, 2018 @04:43AM (#18679637)
Why bother? There's no way a PR is going to get through on this. The entire Facebook team seems to fundamentally disagree that web developers should understand code rather than just write it.