JSFiddle - React, Tailwind, and code Playground

HTML

<div id="div" data-id="17" style="background:red">Contenu</div>

JavaScript

$.fn.plugin = function(){
	$(this).css('background-color','yellow');
}

$('#div').plugin();