JSFiddle - React, Tailwind, and code Playground

HTML

<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<script src="//code.jquery.com/ui/1.11.3/jquery-ui.js"></script>
<link rel="stylesheet" href="//code.jquery.com/ui/1.11.3/themes/smoothness/jquery-ui.css">
<h1>jQuery UI</h1>
<div class="ui-widget">
  <label for="countries">Country: </label>
    <input id="countries"/>
</div>

JavaScript

var countries = [
    "Mauritius",
    "Sudan",
    "Uzbekistan",
    "Uganda"
];
$( "#countries" ).autocomplete({
    source: countries
}).val('u').trigger('keydown');