JSFiddle - React, Tailwind, and code Playground

HTML

<input type="button" id="thisbutton" value="Click me"/>
<br/>
<div id="thetext">
</div>

JavaScript

$(function() {
  var copyText= [
   'this is the first line',
   'Simply put, the second line',
   'impressed by the third line.'
  ];
  $("#thisbutton").click(function () {
     $("#thetext").text(copyText[1]);
  });

});