JSFiddle - React, Tailwind, and code Playground

HTML

<script src="http://jscolor.com/jscolor/jscolor.js"></script>
<input class="color" id="bg-color" type="text" value="" onchange="document.getElementById('button').style.backgroundColor = '#'+this.color" />
<input type="button" value="4000" id="button" />