Check out the format for an inline style:<p><pre><code>    {
      background: &quot;red&quot;,
      fontWeight: &quot;bold&quot;
    }
</code></pre>
It&#x27;s just a Javascript mapping from strings to strings. That&#x27;s a very un-powerful language, and that&#x27;s what React consumes.<p>Sure, you <i>could</i> generate this mapping with all sorts of arbitrary code, just like how you <i>could</i> generate CSS with all sorts of arbitrary code. But that doesn&#x27;t make the style declaration itself any more powerful, much less  an arbitrary executable.