Check out example codes for "nonce script tag". It will help you in understanding the concepts better.

Code Example 1

<script nonce="EDNnf03nceIOfn39fn3e9h3sdfa">…</script>

<!-- Content-Security-Policy: script-src 'nonce-EDNnf03nceIOfn39fn3e9h3sdfa' ( CSP ) -->

Learn ReactJs, React Native from akashmittal.com