JSFiddle - React, Tailwind, and code Playground
HTML
<ul id="results"></ul>
CSS
samp { background: #ccc; }
JavaScript
jQuery.each(
"append prepend before after replaceWith".split(" "),
function( i, method ) {
var $container = jQuery( "<li>" + method + ": " +
"<samp>[initial value]</samp>" +
"</li>").appendTo("#results");
$container.find("samp")[ method ]( "a", "<b>b</b>" );
}
);