JSFiddle - React, Tailwind, and code Playground
HTML
<input type="text" name="url" />
JavaScript
$(function() {
var arrLinks = [
{ key: 1, url: "http://google.com" },
{ key: 2, url: "http://yahoo.com", title: "Yahoo" },
{ key: 2, url: "http://microsoft.com" }
];
$("input[name=url]").autocomplete({ source: arrLinks })
.data("autocomplete")
._renderItem = function(ul, item) {
return $("<li>").data("item.autocomplete", item)
.append("<a>" + item.url + "</a>")
.appendTo(ul);
};
});