JSFiddle - React, Tailwind, and code Playground

by pleinx

HTML

<p id="test">
  Black text?
</p>

JavaScript

(function ( $ ) {

   $.fn.greenify = function() {
      this.css( "color", "green" );
      return this;
  };

  }( jQuery ));
  
jQuery('#test').greenify();