mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
e955008b9b
Simplifies markup generation by only inserting a simple comments between consecutive text nodes. I also skip past comments and other nodes while hydrating. This leaves them in place instead of being removed by the hydration mechanism. This is more efficient but will also be needed by hydration validator. There's a special case for empty strings. We probably shouldn't have nodes for those at all. For now I special case it by assuming there won't be one so if we need one, we'll insert an empty text node. I also dropped the ID from the react ID.