JSFiddle - React, Tailwind, and code Playground

by Vicos

HTML

<canvas height='320' width='480' id='lineOne'>Обновите браузер</canvas>
		        <script>
		            /*var lineOne = document.getElementById("lineOne"),
		                ctx     = lineOne.getContext('2d');
		                // Устанавливаем курсор
		            ctx.fillRect(0, 0, lineOne.width, lineOne.height);*/

	            	var lineOne = document.getElementById("lineOne"),
	                	ctx     = lineOne.getContext('2d');
	            	lineOne.height = 95;
	            	lineOne.width  = 55;
	            	ctx.beginPath();
	            ctx.fill();
	            ctx.moveTo(55, 95);
            	ctx.lineTo(0, 0);            	
	            ctx.stroke();
	        
		        </script>