JSFiddle - React, Tailwind, and code Playground

HTML

<button id="load">
  Load MathJax
</button>

JavaScript

document.getElementById("load").addEventListener('click', function() {
  var script = document.createElement('script');
  document.body.appendChild(script)
  script.onload = function() {
    alert('loaded');
  };
  script.src = 'https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML';
}, false)