JSFiddle - React, Tailwind, and code Playground
HTML
<svg id='svg'>
</svg>
JavaScript
$('#svg').attr('width',1600)
$('#svg').attr('height',1600)
$('#svg').append('<rect width="200" height="200" fill="black"></rect>')
<svg id='svg'>
</svg>
$('#svg').attr('width',1600)
$('#svg').attr('height',1600)
$('#svg').append('<rect width="200" height="200" fill="black"></rect>')