JSFiddle - React, Tailwind, and code Playground

HTML

<textarea cols="43" title="текст" placeholder="текст"  rows="2" id="txtMessage" ></textarea><br> 
<a href="#" id="qwqwqw">Клац</a>

JavaScript

$('#qwqwqw').click(function(){
     $('#txtMessage').css('background-color','#0000ff');
    setTimeout(function(){$('#txtMessage').css('background-color','');},2000);
});