JSFiddle - React, Tailwind, and code Playground
HTML
new TODO item:<input id="txtin" type="text" />
<button id="btnin">Add</button>
<button id="btn-remove">Remove</button>
<hr />
JavaScript
$( "#btnin" ).click(function() {
$( "html" ).append( '<span><input type="checkbox">' + $("#txtin").val() + '<br /></span>' );
});
$( "#btn-remove" ).click(function() {
$('[type="checkbox"]:checked').parent().remove();
});