JSFiddle - React, Tailwind, and code Playground
by vijayweb
HTML
<canvas id="myc"></canvas>
<script>
canvas = document.getElementById("myc");
context = canvas.getContext('2d');
context.fillStyle = 'white';
context.strokeStyle = 'black';
context.font = 'Bold 40pt Ariel';
context.fillText('Some text', 50, 50);
context.strokeText('Some text', 50, 50);
context.fill();
context.stroke();
</script>