JSFiddle - React, Tailwind, and code Playground
HTML
<img id="img1" src="http://i.stack.imgur.com/IScSH.jpg" width="200" height="150"/>
<canvas id="canvas1"></canvas>
JavaScript
$(document).ready(function(){
var canvas2=document.getElementById("canvas1");
var ctx=canvas2.getContext("2d");
ctx.drawImage(document.getElementById("img1"),0,0,200,150);
});