JSFiddle - React, Tailwind, and code Playground

JavaScript

var element = $('h1:first');

alert(element.data('test'));