JSFiddle - React, Tailwind, and code Playground

by darcyclarke

HTML

<div class="test"></div>

JavaScript

var clonedEl = $(".test").clone();
if(clonedEl.length >= 1){
    console.log('cloned! woot!');
} else {
    console.log('nothing there...');   
}