JSFiddle - React, Tailwind, and code Playground

HTML

<!doctype html>
<html>
  <script type='text/javascript'>
    var canvas = null;
    var img = null;
    var ctx = null;
      var img64 =...