mirror of
https://github.com/facebook/react.git
synced 2026-02-26 07:55:55 +00: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.