JSFiddle - React, Tailwind, and code Playground
HTML
<input id="typeahead" />
JavaScript
/*!
* typeahead.js 0.9.3
* https://github.com/twitter/typeahead
* Copyright 2013 Twitter, Inc. and other contributors; Licensed MIT
*/
! function (a) {
var b = "0.9.3",
c = {
isMsie: function () {
var a = /(msie) ([\w.]+)/i.exec(navigator.userAgent);
return a ? parseInt(a[2], 10) : !1
},
isBlankString: function (a) {
return !a || /^\s*$/.test(a)
},
escapeRegExChars: function (a) {
return a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&")
},
isString: function (a) {
return "string" == typeof a
},
isNumber: function (a) {
return "number" == typeof a
},
isArray: a.isArray,
isFunction: a.isFunction,
isObject: a.isPlainObject,
isUndefined: function (a) {
return "undefined" == typeof a
},
bind: a.proxy,
bindAll: function (b) {
var c;
for (var d in b) a.isFunction(c = b[d]) && (b[d] = a.proxy(c, b))
},
indexOf: function (a, b) {
for (var c = 0; c < a.length; c++) if (a[c] === b) return c;
return -1
},
each: a.each,
map: a.map,
filter: a.grep,
every: function (b, c) {
var d = !0;
return b ? (a.each(b, function (a, e) {
return (d = c.call(null, e, a, b)) ? void 0 : !1
}), !! d) : d
},
some: function (b, c) {
var d = !1;
return b ? (a.each(b, function (a, e) {
return (d = c.call(null, e, a, b)) ? !1 : void 0
}), !! d) : d
},
mixin: a.extend,
getUniqueId: function () {
var a = 0;
...