Dr. Derek Austin šŸ„³
1 min readAug 12, 2019

--

Hi Dmitry! Thanks for your reply!

I understand that legacy codebases are gonna have classes. Since classes & hooks basically work together, I donā€™t know why anyone would write much new code without using hooks, because it simplifies event handling so much.

On the other hand, it is a bit of a black boxā€¦ and I have no idea how to handle that ā€œbubbling problemā€ when you click on the innermost box but want it handled by the outermost box using React Hooks. :-)

--

--

Dr. Derek Austin šŸ„³
Dr. Derek Austin šŸ„³

Written by Dr. Derek Austin šŸ„³

Hi, I'm Doctor Derek! I've been a professional web developer since 2005, and I love writing about programming with JavaScript, TypeScript, React, Next.js & Git.

No responses yet