JSFiddle - React, Tailwind, and code Playground

HTML

<canvas id='canvas'></canvas>

JavaScript

var ctx = document.getElementById('canvas').getContext('2d');  
ctx.translate(100,100);  
ctx.save();
ctx.rotate(Math.PI);  
ctx.fillText("TEST", 10, 10);


ctx.restore();