title: How to write JavaScript code inside html attributes in React JS
body: <pre><code>return(
    &lt;div&gt;
      &lt;Loading loadingMessage="Running "{this.state.programName}" program"/&gt;
    &lt;/div&gt;
  );
  </code></pre>
  
  <p>I know that above attribute <code>loadingMessage</code> value is syntactically wrong. But my need is, I need to get that <code>programName</code> from state and append to <code>loadingMessage</code> attribute value. How can I do this? Any help will be appreciated.</p>