JSFiddle - React, Tailwind, and code Playground

HTML

<input id="tags" />

JavaScript

var initAutocomplete = function(){
    
    // create a function that will go and get data
    var getData = function(request, response) {
        $.ajax({ 
            url: "Sources/Ajax.php?act=User_List", 
            type: "POST", 
            data: "fullname=" + request.term, 
            success: function(data){ 
                // fill the callback with the data 
                response(data);
            } 
        }); 
    };
    
    // do the init
    $("#tags").autocomplete({ 
        source: getData
    }); 
};