by Aeolun · 5y ago · 0 comments
Class components were fine. Hooks are also fine.
They both give you plenty of rope to hang yourself with. And if a component in either form is hard to understand it’s probably just too f big.
What bother me most is those people that have no clue how hooks work, but claim their “functional” components are now faster, because they’ve read that functional is good somewhere.
[0]http://raganwald.com/2016/07/20/prefer-composition-to-inheri...
Everything that is possible with programming has been possible since we were poking hex codes directly into memory. All language improvements have been about semantics, or fixing performance degradations brought about by new programming paradigms.
[edit] I do agree that mixins could've been good too.
Hooks feel more like something added to fill in space and another example of the ecosystem bloating itself just for show.