I am writing a jsx file and want to format the display of numbers in a table. Here is the code for the table:
<tr>
<td>
{stringVar}
</td>
<td>
{numberVar}
</td>
</tr>
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)?