JSFiddle - React, Tailwind, and code Playground

HTML

<svg version="1.1" id="ex1-3rds-quarter-s" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px"
 y="0px" width="323.333px" height="55.333px" viewBox="0 0 323.333 55.333" enable-background="new 0 0 323.333 55.333"
 xml:space="preserve">
<g id="ledgerlines">
  <line id="MidCLine1" fill="none" stroke="#000000" stroke-width="0.75" stroke-miterlimit="10" x1="48.09" y1="41.694" x2="57.924" y2="41.694"/>
</g>
</svg>

JavaScript

var  svgns = "http://www.w3.org/2000/svg";
var  xlinkns = "http://www.w3.org/1999/xlink";

var  g = document.getElementById("ledgerlines");

var  use = document.createElementNS(svgns, "use");
use.setAttributeNS(xlinkns, "href", "#MidCLine1");
use.setAttribute("y", "10");  // offset = y+10

g.appendChild(use);