JSFiddle - React, Tailwind, and code Playground
by soorajchn
HTML
<div id="sample">
</div>
JavaScript
$(document).ready(function() {
var $button = $('<button />', {
type: 'button',
class: 'tweetButton',
id: 'mT',
text: 'More Tweets'
});
$("#sample").append($button);
});
$(document).on('click', ".tweetButton", function() {
alert('I work!');
});