dillon1000/react
Commit
Browse files 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.Changed paths4 files
First-parent comparisonpackages/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 ModifiedPatch
Files changed
Rendering syntax-highlighted changes…