JSFiddle - React, Tailwind, and code Playground
HTML
<div id="code" style="background-color:red"> </div>
<div id="a1">Click Me</div>
<div id="a2">Click Me, please</div>
CSS
#code { border: 1px solid red; padding: 30px; }
JavaScript
$('#a1,#a2').click( function(){
$('#code')
.html( $.trim( $(this).text() ) )
.effect('highlight',{color: "transparent"},250)
.effect('highlight',{color: "transparent"},250);
});