JSFiddle - React, Tailwind, and code Playground

HTML

<input id="info[text1]" type="text" value="1"/> <br>

JavaScript

$('#info\\[text1\\]').val('test')