JSFiddle - React, Tailwind, and code Playground
by ten1seven
HTML
<div id="svg"></div>
CSS
#svg {
background: #eee;
height: 300px;
width: 300px;
}
JavaScript
paper = Raphael(document.getElementById('svg'), 300, 300);
pathLine = 'M0 0L30 30';
path = paper.path(pathLine);
path.attr({
'stroke-width': 2,
'stroke': '#f48139'
});