Check out example codes for "name before input html". It will help you in understanding the concepts better.

Code Example 1

<form 
    action="/action_page.php"
    method="get" name="myForm">

  <label for="fname">First name:</label>
  <input type="text" id="fname" 
    name="fname"><br><br>
  <label for="lname">Last name:</label>
  
    <input type="text" id="lname" name="lname"><br><br>
  <input 
    type="button" onclick="formSubmit()" value="Send form data!">

    </form>

Learn ReactJs, React Native from akashmittal.com