JSFiddle - React, Tailwind, and code Playground
HTML
<input type="text" id="text" value="foo">
JavaScript
console.log("$('#text').val(): %s", $('#text').val());
<input type="text" id="text" value="foo">
console.log("$('#text').val(): %s", $('#text').val());