JSFiddle - React, Tailwind, and code Playground

HTML

<div data-Hello="hi"></div>

JavaScript

$('div').html(
$('[data-hello]').length+'<br/>'+
$('[data-Hello]').attr('data-hello')+'<br/>'+
$('[data-Hello]').attr('data-Hello')+'<br/>'+
$('[data-Hello]').data('hello')+'<br/>'+
$('[data-Hello]').data('Hello')
);//this one is wrong.