JSFiddle - React, Tailwind, and code Playground

by secretgspot

HTML

<canvas id="new_canvas"></canvas>

JavaScript

var ctx = document.getElementById('new_canvas').getContext('2d');
var img = new Image();
img.src...