JSFiddle - React, Tailwind, and code Playground

HTML

<button type="button" id="add">Add a button!</button>
<div id="menu">
</div>

CSS

#menu{
    background:grey;
    height:150px;
    overflow-y:auto;
    float:left;
}

JavaScript

$('#add').button().click(function(){
    var d = $('<div/>');
    var b = $('<button type="button">Test</button>');
    d.appendTo($('#menu'));
    b.button().appendTo(d);
});