“We are now using document.createElement instead of setting innerHTML when mounting components. This allows us to get rid of the data-reactid attribute on every node and make the DOM lighter. Using document.createElement is also faster in modern browsers and fixes a number of edge cases related to SVG elements and running multiple copies of React on the same page.”
More from Dan Abramov
“Things that are traditionally sync don’t have to “feel” sync. Things that are…”
“Interesting thing about React 16 SSR that is easy to miss. No more checksums means it can…”
“the Facebook codebase has over 20,000 React components, and that’s not even counting React…”
“React 15 no longer emits extra nodes around the text, making the DOM output much cleaner.”