JSFiddle - React, Tailwind, and code Playground

by asou ryouma

HTML

<p id="test"> i am a pen.</p>

JavaScript

(function($) {
	// ここにコードを記述してください。
	// 背景が引数に指定した値になるメソッドbackgroundChange()を実装してください。
	$.fn.backgroundChange = function(x){
  	this.css({"background-color": x});
  };
})(jQuery);

$("#test").backgroundChange('#acf');