Check out example codes for "how to collect input textbox in html". It will help you in understanding the concepts better.

Code Example 1

<label for="name">Name:</label>
  <input type="text" id="name"><br><br>

Learn ReactJs, React Native from akashmittal.com