JSFiddle - React, Tailwind, and code Playground

HTML

<div id="container">
    <p>This is a static paragraph from the original document</p>
    <input type="button" class="add" value="Add Another Paragraph" />
</div>

JavaScript

$(function(){
    $('#container').delegate('.add','click',function(){
        $('#container')
            .append($('<p>').text('This is a generated paragraph, added later'))
            .append($('<input>').attr({
                'type':'button',
                'class':'add',
                'value':'Add Another Paragraph'
            }));
    });
});