r/reactjs • u/athsmattic • Aug 13 '19
A Comprehensive Introduction To React Hooks. My full guide (and first article).
https://howchoo.com/g/njy1njc2yzk/introduction-to-react-hooks5
u/Raicuparta Aug 14 '19
What is the point of this kind of article? What does it have that the official documentation doesn't? I can understand the articles that explain a particular project using a particular combination of technologies, but this is just explaining what is already explained.
I'm not just criticising it, genuinely asking because some people seem to enjoy these.
I just don't find any value in them, since the official React documentation is already so well written: extensive enough while remaining accessible for newbies. Plus, you know the official documentation is up to date, while this kind of article can become redundant very quickly.
4
0
u/athsmattic Aug 14 '19
I get your point, the React docs are formatted and written fantastically and I reference them all the time and encourage others to do so in as many places as I can in the article.
I also tried to put some of it together with the custom hook at the end that pulls some of lessons together which is a bit more in depth than the setInterval example in the docs. (with a bit of help from Dan Abramov's article on the subject.)
Like you said though, some people like consuming things in different ways and these types of articles are one of them, even if they just serve to reinforce existing knowledge or hopefully add an insight or two.
My goal was to try and introduce the topic or reinforce existing knowledge in a broad way, and if it got any traction, break each hook down in its own article to add more depth or make a full sample app to show how all of it can fit together so hopefully this is a starting point, and as those other pieces come out it will enrich this article which I do intend on keeping up to date.
Anyway, thanks for that perspective, I'm learning how to write this kind of content so I'll keep it in mind for future articles.
1
3
2
0
u/LobsterThief Aug 13 '19
Excellent article!
1
u/athsmattic Aug 13 '19
Thanks! I wanted to wrap my head around hooks myself so I'm glad it's helping others.
12
u/draftax5 Aug 14 '19
I tried reading it but I’m on mobile and I counted 21 ads. Felt like every other paragraph was an ad.
Maybe try easing up on the ads and you will get more user engagement and a lower bounce rate