Additional changes to review3 matched termsMatched wording:deprecatedrenamedno longerThese matches may be harmless in context. Expand to see the excerpts.
- The changelog mentions deprecation; it may still be compatible.
LinkedStateMixinandvalueLinkare now deprecated due to very low popularity. If you need this, you can use a wrapper component that implements the same behavior: react-linked-input. (@jimfb in #6127)
Major changes
- Initial render now uses
document.createElementinstead of generating HTML. Previously we would generate a large string of HTML and then setnode.innerHTML. At the time, this was decided to be faster than usingdocument.createElementfor the majority of cases and browsers that we supported. Browsers have continued to improve and so overwhelmingly this is no longer true. By usingcreateElementwe can make other parts of React faster. (@spicyj in #5205) data-reactidis no longer on every node. As a result of usingdocument.createElement, we can prime the node cache as we create DOM nodes, allowing us to skip a potential lookup (which used thedata-reactidattribute). Root nodes will have adata-reactrootattribute and server generated markup will still containdata-reactid. (@spicyj in #5205)- No more extra
<span>s. ReactDOM will now render plain text nodes interspersed with comment nodes that are used for demarcation. This gives us the same ability to update individual pieces of text, without creating extra nested nodes. If you were targeting these s in your CSS, you will need to adjust accordingly. You can always render them explicitly in your components. ( in )