facebook/react — pull request #2367 by yungsters (2014-10-16 21:28:17+00:00)
Title: Update Dirty Components in Mount Ordering

Currently, `ReactUpdates` updates dirty components in increasing order of mount depth. However, mount depth is only relative to the component passed into `React.render`. This breaks down for components that invoke `React.render` as an implementation detail because the child components will be updated before the parent component.

This fixes the problem by using the order in which components are mounted (instead of their depth). The mount order transcends component trees (rooted at `React.render` calls).

Test Plan:
Ran unit tests successfully:

```
npm run jest
```