JSFiddle - React, Tailwind, and code Playground

by Fuzzy

HTML

<script src="https://unpkg.com/@svgdotjs/svg.js"></script>
<div id="canvas">

</div>

CSS

html, body, #canvas{
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

JavaScript

var canvas = SVG().addTo('#canvas').size('100%', '100%')

// create your example here
canvas.rect(100, 100).move(100, 100).fill('blue')