How React Works · Part 107 min read
Events: One Listener at the Root
React never attaches your onClick to the button; one listener per event type on the root container finds the target's fiber, walks the component tree to collect your handlers, and gives their updates a priority.