|
|
|
Ask HN: Anyone else think the new React Hooks API offers little to no value?
|
|
1 points
by MarvelousWololo
2607 days ago
|
|
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. |
|
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.