facebook/react — pull request #1912 by syranide (2014-07-22 16:49:40+00:00)
Title: Only reuse server-rendered React nodes if there are no unexpected siblings

PR for #996

I choose to believe that users should be correcting their own "mistakes", rather than have React transparently fix and unknowingly introduce weird edge-cases and visual artifacts.

Quite simply, this PR enforces that there are no other nodes except the node rendered by React inside the target, it obviously does not warn if there isn't a node rendered by React inside the target. It only performs this check in DEV.

This PR also serves to prevent future regressions of #1903