JSFiddle - React, Tailwind, and code Playground

by Zevan

JavaScript

var r = new Raphael(0,0,400,400);

var p = r.path("M 0 0 L 100 100");

p.node.setAttribute("stroke", "#FF0000");
                   
p.node.setAttribute("transform", "translate(20,20)");