Ku Lok Sun
1 min readJul 25, 2020

--

Hi Kushal,

Thanks for your information.
It is good to know that React use event delegation under the hood,
but I don’t think this contradicts my article.

In the link, it is about React internal implementation.
But my article is about how external users use React to manage handlers.

I am not saying the React team should not use event delegation.

I mean React has already abstracted event delegation from users.
We should not use event delegation when we can use React to manage handlers.
Having two mechanisms to manage handler make code harder to maintain.

--

--

Ku Lok Sun
Ku Lok Sun

Written by Ku Lok Sun

Software Engineer from Hong Kong, living in Luxembourg

Responses (1)