JSFiddle - React, Tailwind, and code Playground

HTML

<svg id="TheSVG">
    
    <rect width="300" height="100" style="fill:rgb(0,0,255);stroke-width:3;stroke:rgb(0,0,0)" />
    
    
</svg>

<input type="button" value="click" id="TheButton" />

JavaScript

function Start() {  
    $('#TheButton').click(ResizeSVG);    
};

function ResizeSVG() {    
    $('#TheSVG').css({'width':40, 'height' :40});
}

$(Start);