JSFiddle - React, Tailwind, and code Playground

by rwaldron

JavaScript

console.log( 
    jQuery.hasData(
        jQuery("<div data-msg='hello'></div>")[0]
    )
);

console.log($('#test').data());