JSFiddle - React, Tailwind, and code Playground

HTML

<script src="//code.jquery.com/jquery-1.11.3.min.js"></script>
<script type="text/javascript" src="http://ffsolucoesweb.com/ferramentas/cidadesEstados.js"></script> 
<script type="text/javascript">
window.onload = function() {

  new dgCidadesEstados({
    estado: document.getElementById('estado'),
    cidade: document.getElementById('cidade'),
		change: true
  });
}
</script>


</head>
<body>    

<label>Estado</label>
    <input id="estado" name="estado" onchange="myfunction()">
    <label>Cidade</label>
    <input id="cidade" name="cidade">

</body>

JavaScript

function myfunction(){
	alert('oi');
}