mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
b12bea62d9
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.