JSFiddle - React, Tailwind, and code Playground

by lê anh

HTML

<button id=”button”>click me</button>
<p>this text will be show </p>
<p id="test"> this text will be fade out</p>

JavaScript

$(document).ready(function(){
  $("button").click(function(){
    $("#test").append("<b>Appended text</b>.").fadeOut(3000);
  });
});