JSFiddle - React, Tailwind, and code Playground
by Imabot
HTML
<script src="https://cdn.jsdelivr.net/npm/mathjax@3.0.1/es5/tex-mml-svg.js"></script>
\[ e=mc^2 \]
\[ {e=mc^2 \]
\[ e=mc^ \]
JavaScript
MathJax.typesetPromise()
.then(() => console.log ('Typeset successful'))
.catch((err) => console.log('Typeset failed: ' + err.message));