JSFiddle - React, Tailwind, and code Playground

HTML

<h1>This is the default text</h1>
  <form>
  <fieldset>
    <input type="color" id="colorChoice">
  </fieldset>
</form>

JavaScript

$("#colorChoice").change(function(){
  $("h1").css('background', $(this).val());
});