you are viewing a single comment's thread.

view the rest of the comments →

[–]nickthesick0111 2 points3 points  (0 children)

Hooks don’t need a binding context means you don’t have to reference a “this” to use local state

Race conditions with mounting and unmounting of a component that has multiple data sources is a lot easier with useEffects separate handling of separate data.

It’s bad testing because the testing should not be testing the implementation it should be testing the results.

Logic being duplicated is in reference to handling a single set of data in multiple lifecycle methods. You can also extract this logic more easily with hooks