JSFiddle - React, Tailwind, and code Playground

HTML

<div  id="ahah">
    <span> test</span>
    <span > second part</span>
</div>    
<br/>
<input type="button" value="Add" id="add" />
<input type="button" value="Remove" id="remove" />

CSS

span{
display: inline-block;
}
#ahah{
    display:inline-block;
}

JavaScript

function addBr(){
    $("span").eq(1).before("<br/>");
}
function removeBr(){
    $("#ahah").children("br").remove(); 
}

$("#add").click(addBr);
$("#remove").click(removeBr);