title: React Helmet injecting a javascript object into head tag
body: <p>I need to inject into to head tag a script and link tag which are downloaded from API.
  I have variable <strong>injectionScript</strong> which contains the full tag script and <strong>injectionLink</strong> with link tag.
  I found that Helmet component accept parameters like src, integrity etc but I need to inject a whole tag.</p>
  <pre><code>            &lt;Helmet
                  script={[
                      {&quot;src&quot;: &quot;https://cdnjs.cloudflare.com/ajax/libs/prism/1.21.0/components/prism-swift.min.js&quot;,
                          &quot;integrity&quot;: &quot;sha512-WkVkkoB31AoI9DAk6SEEEyacH9etQXKUov4JRRuM1Y681VsTq7jYgrRw06cbP6Io7kPsKx+tLFpH/HXZSZ2YEQ==&quot;,
                      &quot;crossOrigin&quot;: &quot;anonymous&quot;}
                  ]}
  </code></pre>
  <p>It is possible? I'm trying solutions like this:</p>
  <pre><code>&lt;Helmet script={injectionScript}&gt;
  &lt;Helmet htmlAttributes={{script: injectionScript}}&gt;
  </code></pre>
  <p>But doesn't work for me.</p>
  <p><strong>EDIT</strong>: I have only variable const <strong>injectScript = (injectionScript)</strong> This variable is downloaded from API and it just includes a whole tag in one place.</p>
  <pre><code>&lt;script src=&quot;https://cdnjs.cloudflare.com/ajax/libs/prism/1.21.0/prism.min.js&quot; integrity=&quot;sha512-WkVkkoB31AoI9DAk6SEEEyacH9etQXKUov4JRRuM1Y681VsTq7jYgrRw06cbP6Io7kPsKx+tLFpH/HXZSZ2YEQ==&quot; crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;
  </code></pre>
  <p>How to use this variable <strong>injectScript</strong> in Helmet?</p>