JSFiddle - React, Tailwind, and code Playground
by honglonglong
HTML
<html><head></head>
<body>
<canvas id="example" width="200" height="200">
This text is displayed if your browser does not support HTML5 Canvas.
</canvas>
</body>
</html>
JavaScript
var ctx = document.getElementById('example').getContext('2d');
ctx.beginPath();
ctx.moveTo(0, 0);
ctx.lineTo(100, 100);
ctx.stroke();