Akash Verma
1 min readNov 20, 2018

--

Hi Eytan,

Great article!

I just want to confirm my understanding from your blog regarding below points:

  1. Each event type has a single listener which keeps reference to all the handlers for that event type in the entire React tree. This reference is assigned to the listener as soon as we write synthetic events in our components.
  2. Whenever an event occurs, the listener for that event type is invoked which dispatches all the registered event handlers to the event plugin hub. Event plugin hub re-direct all the handlers to all the event plugins by adding their corresponding fiber node to identify which particular handler needs to be invoked.

Is my understanding correct?

--

--

Akash Verma
Akash Verma

Written by Akash Verma

JavaScript Enthusiast, Software Engineer @goevive. Follow me on twitter @Akash940

Responses (1)