title: Format number in jsx React component
body: <p>I am writing a jsx file and want to format the display of numbers in a table.  Here is the code for the table:</p>
  
  <pre><code>&lt;tr&gt;
    &lt;td&gt;
      {stringVar}
    &lt;/td&gt;
    &lt;td&gt;
      {numberVar}
    &lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>The numberVar is being printed directly; how can I display that number with C-style string formatting (I need to set precision value, add commas, and a $ character)?</p>