JSFiddle - React, Tailwind, and code Playground
HTML
<form id="form1">
<input type='text' name='key' value='val'></input>
<form id="form2">
<input type='text' name='key' value='val2'></input>
</form>
</form>
JavaScript
console.log(document.getElementById("form1"));
console.log(document.getElementById("form2"));