JSFiddle - React, Tailwind, and code Playground

by webvitaly

HTML

<div>div</div>
<p>paragraph</p>

JavaScript

$(function() {
    $('div').after($('<strong> - after text</strong>'));
    $('p').after($('<strong>').attr('title', 'text title attr').text(' - after text with title attr'));
});