re: What's hard about React Hooks for you? VIEW POST

FULL DISCUSSION
 

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.

 

Could you clarify what you mean by "instances?"

 

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?”

code of conduct - report abuse