Hacker News new | ask | show | jobs
by hitekker 2237 days ago
A clear, concise & clever blog post.

Quizzing the community on its supposed expertise, is such an effective way to separate rhetoric from reality.

1 comments

While I like the post and associated quiz, I feel like execution order is not the most important thing to understand with hooks, but it's the main theme of the quiz. If you're designing your components in an effective way, execution order shouldn't _really_ come into play. It typically only comes to bite you if you're manipulating some global state outside of React, or doing some direct DOM manipulation.

Questions 3 and 4 about anonymous objects and useRef are definitely the kind of knowledge that someone who aims to understand React and Hooks should focus on, though.