JSFiddle - React, Tailwind, and code Playground

HTML

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

JavaScript

$('.test').click(function()
{
  //test event                   
})

//gives undefined in console when no event is on the object
console.log($._data($('.test')[0], "events"));