JSFiddle - React, Tailwind, and code Playground
by JM note
HTML
<script src="//code.jquery.com/jquery.min.js"></script>
<script>
// 플러그인
$.fn.redify = function() {
this.css( "color", "red" );
return this;
};
$.fn.yellowBack = function() {
this.css( "background", "yellow" );
return this;
};
// 사용 예시
$(function() {
$('#greet').redify().yellowBack();
});
</script>
<div id='greet'>안녕</div>