JSFiddle - React, Tailwind, and code Playground
by jcubed111
HTML
<canvas id='canvas' width='500' height='500'></canvas>
CSS
body{
background:#EEE;
}
canvas{
width:500px;
height:500px;
background:#FFF;
border:1px solid #CCC;
}
JavaScript
//function grapher
ctx=document.getElementById('canvas').getContext('2d');