JSFiddle - React, Tailwind, and code Playground
HTML
<input width="50" type="text" value="" name="application_id" id="text_input">
<a href="#" onclick="addSelect('1', 'Test Name');" title="Click to add this item">Test Name</a>
JavaScript
function addSelect(id, title) {
document.getElementById('text_input').value = title;
}