JSFiddle - React, Tailwind, and code Playground

JavaScript

$(function() {
    var $without = $('<a>'),
        $with = $('<a />');
    
    $("body").append('Without a closing tag, length = ' + $without.length);
    $("body").append('<br />');
    $("body").append('With a closing tag, length = ' + $with.length);
});