dillon1000/react

Commit

Preinits should support a nonce option (#26744)

Currently there is no way to provide a nonce when using
`ReactDOM.preinit(..., { as: 'script' })`

This PR adds `nonce?: string` as an option

While implementing this PR I added a test to also show you can pass
`integrity`. This test isn't directly related to the nonce change.
Browse files
Changed paths4 files
First-parent comparison
M packages/react-dom-bindings/src/client/ReactFiberConfigDOM.js ModifiedM packages/react-dom-bindings/src/server/ReactFizzConfigDOM.js ModifiedM packages/react-dom/src/ReactDOMDispatcher.js ModifiedM packages/react-dom/src/__tests__/ReactDOMFloat-test.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…