JSFiddle - React, Tailwind, and code Playground

HTML

<input type="color" name="fontcolor" id="fontcolor" value="#ffffff" onchange="setstyle('usermsg',this.value);">
<textarea id="usermsg" style=""></textarea>

JavaScript

function setstyle(elm,val) {
 var myinput = document.getElementById(elm);
 myinput.style.color = val;
}