JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false&libraries=places"></script>
<input type="text" id="q" />
JavaScript
var input = document.getElementById('q');
var autocomp = new google.maps.places.Autocomplete(input);
// how to open suggestions box ?
var autoText = ['R', 'o','m','e',',',' '];
var characterIndex = 0;
for(characterIndex=0; characterIndex < autoText.length; characterIndex++){
$("#q").blur().val( $("#q").val() + autoText[characterIndex] ).focus();
//alert($("#q").val());
}