JSFiddle - React, Tailwind, and code Playground

HTML

<input type='text' />

JavaScript

var json = ["Atlanta", "Chicago", "Little Rock", "RockFord", "Rhode Island"];

json.sort();

$('input').autocomplete({
  source:json
   
  
});