DEV Community

Discussion on: React Hooks as an Enabler for Concurrent mode

Collapse
 
oskarkaminski profile image
Oskar

Hi Jose,

Can you please elaborate more about this part?
"Functional components enable better tree-shaking and more predictable change tracking which helped a lot with the developer tooling"

How does exactly functional component with Hooks enable better tree shaking and more predictable change tracking?

Do you have any source for this information?

Collapse
 
josemunoz profile image
José Muñoz

Hi Oskar,

I don't have anything written to back it up, however a video version should be just as good :)

*the liquid tags for videos on the comments don't support time codes yet so I'll have to paste a link: youtu.be/V-QO-KO90iQ?t=490

Collapse
 
oskarkaminski profile image
Oskar

I would love to dive deeper into real example showing, that class method isn't shaken, whereas hook function is.
Maybe I will have to create one this weekend... :)

Thanks for pointing this out!