3 ms·
> I hope developers with decent skills move on on Hook style api (...) What's your opinion on Hook-style APIs?
by arinlen 4y ago
> I hope developers with decent skills move on on Hook style api (...)
What's your opinion on Hook-style APIs?
- maxloh 4y agoI have mixed feelings. Hook style API allows us to write the same functionality with less keystrokes. But I found that I interpret how it works object-orientedly. It feels wierd to write them as functions instead of classes. If there are multiple appearances of the same component, they belong to different "instances". Components get updated by modifying their state, or in other words, their "instance variables".