JSFiddle - React, Tailwind, and code Playground

by brigand

HTML

<canvas id='Canvas' width="200" height="200" style="border:1px solid #000000;"></canvas>
 
    <script>
        let canvas = document.getElementById('Canvas');
        let copy = document.createElement('canvas');
        copy.getContext('2d').drawImage(canvas, 0, 0);
       
        // Interperter says Argument type HTMLElement is not assignable to parameter type CanvasImageSource
    </script>