I have a React App, which uses the Google Autocomplete API:
function initAutocomplete() { autocomplete = new google.maps.places.Autocomplete( document