JSFiddle - React, Tailwind, and code Playground

by Neal

HTML

<div> this is an element </div><div> this is an

<div> this is an element </div><div> this is an element </div>element </div>

JavaScript

var log = function($selector) {
    $selector.each(function() {
        console.log(this);
    });
};
log($('div'))