JSFiddle - React, Tailwind, and code Playground
HTML
<div class="take"><p>this is the para</p><button class="test">copy</button></div>
CSS
p{
float:left;
line-height:28px;
}
button{
float: right;
}
div{
width: 200px;
}
JavaScript
$('.test').on('click', function() {
var o = $(this).parent();
o.clone(true).insertAfter(o);
})