import { render, createElement as c, ClearCanvas, Properties, StrokeRect } from'declarativas';// Get your canvas from an HTML file.constcanvas=document.querySelector('canvas');render( [c(ClearCanvas),c(Properties, { strokeStyle:'black' }),c(StrokeRect, { x:100, y:100, w:20, h:20, }) ]),canvas.getContext('2d'),);