DEV Community

Discussion on: What's hard about React Hooks for you?

Collapse
 
freddiecarthy profile image
Freddie Carthy

Shifting the way I think about components, from lifecycles to instances, especially when converting large components that rely on those lifecycles.
The end result is always clearer and easier to read code. Getting there requires some thought.

Collapse
 
kentcdodds profile image
Kent C. Dodds

Could you clarify what you mean by "instances?"

Collapse
 
freddiecarthy profile image
Freddie Carthy

What I mean is, rather than thinking “should this component update?” I instead can shift my thinking to “my props have changed, how should this instance of my component react to them?”