JSFiddle - React, Tailwind, and code Playground

by Ilmv

HTML

<div id="myDiv"></div>

JavaScript

$(document).ready(function() {
        
    var $a = $('<a />')
        .attr('href','http://my.host/path')
        .attr('title','This is a cool link!')
        .html('Click here');
    
    $('#myDiv').append($a);
    
});