3 ms·
At first I had the exact same reaction as the author. React hooks seem obscure, and you can't understand what happens just by mimicking what you see. Then I re
by thiht 6y ago
At first I had the exact same reaction as the author. React hooks seem obscure, and you can't understand what happens just by mimicking what you see.
Then I read the docs on React hooks and everything became clear.
Hooks are a new way to think in React, don't try to resist and learn it. Also RTFM. The React official doc is amazingly clear and easy to read.
- ZephyrBlu 6y agoI don't understand why people don't read the docs for everything. For me, it's natural for the docs to be the first place I look and to be my source of truth.
- thiht 6y agoBecause new features are often close enough to what we know that there's no need to read the docs. But when we come across a feature we struggle with, it's easier to blame it on bad design than just reading the docs :)