Ask HN: Anyone else think the new React Hooks API offers little to no value?
I mean it adds a lot of overhead and specific domain knowledge without any real gain. There's nothing we can do with hooks that we cannot do with plain JS classes. To make sure it will not impact a component performance - being called everytime to render even though there's no need for that - we have to use a special hook - useCallback.
4 comments
[ 4.1 ms ] story [ 22.3 ms ] threadIt would be easier to reply if you were specific about what you mean.
Update:
what do you mean exactly "it adds a lot of overhead"
what "specific domain knowledge" precisely do you mean?
We've been dealing with that issue for something like 20 years now, and not knowing it will bite you in far more places than React.