mirror of
https://github.com/facebook/react.git
synced 2026-02-27 03:07:57 +00:00
Fixes the case where there's an uncaught error and the root unmounts. We implement this by rendering the root as if its child is null. Null is not usually allowed at the top level, so we need to special case it.