dillon1000/react
Commit
Browse files when float is enabled only push title and script as a single unit (#25536)
replaces: https://github.com/facebook/react/pull/25535 This takes a more huerstic based approach with no new conditionals on the hot path of fizz rendering. If float is enabled * title and script can only have simple children * if non-simple children are found they will be ignored * title and script are pushed in a single unit during pushStartInstance including their children and closing tags If float is not enabled * the original pushing behaviors are in place and you can have complex children but you will get warnings
Changed paths5 files
First-parent comparisonpackages/react-dom-bindings/src/server/ReactDOMFloatServer.js ModifiedM packages/react-dom-bindings/src/server/ReactDOMServerFormatConfig.js ModifiedM packages/react-dom/src/__tests__/ReactDOMFizzServer-test.js ModifiedM packages/react-dom/src/__tests__/ReactDOMFizzServerBrowser-test.js ModifiedM packages/react-dom/src/__tests__/ReactDOMFloat-test.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…