JSFiddle - React, Tailwind, and code Playground
HTML
<input type="text" id="texts" name="" value="тест" />
<div id="tets">asdasd asdasdasd</div>
JavaScript
$('#tets').click(function() {
var tc = $(this).html();
$('#texts').attr('value', tc);
});