dillon1000/react

Commit

[Float][Fizz][Fiber] support type for ReactDOM.preload() options (#26239)

preloads often need to come with a type attribute which allows browsers
to decide if they support the preloading resource's type. If the type is
unsupported the preload will not be fetched by the Browser. This change
adds support for `type` in `ReactDOM.preload()` as a string option.
Browse files
Changed paths3 files
First-parent comparison
M packages/react-dom-bindings/src/client/ReactDOMFloatClient.js ModifiedM packages/react-dom-bindings/src/server/ReactDOMServerFormatConfig.js ModifiedM packages/react-dom/src/__tests__/ReactDOMFloat-test.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…