JSFiddle - React, Tailwind, and code Playground

by Pavlo

HTML

<div>test</div>

JavaScript

$('div')
.append('<label>').html(
    $('<input>').attr('id', this.id).html() +
    $('<span>').html(this.description).html()
);