JSFiddle - React, Tailwind, and code Playground
by Amar Nyayapati
HTML
<style>
body {
margin: 0px;
padding: 0px;
}
#myCanvas {
border: 1px solid #9C9898;
}
</style>
<script>
window.onload = function() {
var canvas = document.getElementById("myCanvas");
var context = canvas.getContext("2d");
context.beginPath();
context.moveTo(239, 150);
context.lineTo(289, 50);
context.lineTo(339, 150);
context.lineJoin = "round";
context.stroke();
}
</script>
<body>
<canvas id="myCanvas" width="578" height="200"></canvas>
</body>