Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Preinits should support a nonce option (#26744)
Summary: 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. DiffTrain build for commit facebook/react@b12bea6. Changelog: [Internal] << DO NOT EDIT BELOW THIS LINE >> Reviewed By: sammy-SC Differential Revision: D45416244 Pulled By: tyao1 fbshipit-source-id: f92d66a1d6358c21e52a3b8003d06c662e2fc9fa
- Loading branch information