JSFiddle - React, Tailwind, and code Playground
JavaScript
var paper = Raphael(0,0,500,500);
//paste here the tutorial's code fragment.
paper.text(100,20,"click the red rectangle");
var r1 = paper.rect(60,70,100,130).attr({fill: "blue", "stroke-width": 4});
var r2 = paper.rect(100,130,120,100).attr({fill: "red", "stroke-width": 4});
r2.click(function(){
this.toBack();
})