JSFiddle - React, Tailwind, and code Playground
by Robbie Wxyz
HTML
<label for="test">
<input id="test" type="text">
</label>
JavaScript
var array=['aaa','bbb','ccc','ddd'];
$(function(){
$("#test").attr('title',array.join('<br/>'));
$("#test").tooltip({
content:function(){return $(this).attr('title');},
});
});