mirror of
https://github.com/react/react.git
synced 2026-10-07 04:10:28 +08:00
We're walking backwards up to the root to find the parent so that we can propagate events further up to nested React parents. If we don't find a root, that means that the tree was unmounted and we shouldn't send any events to it.