Check out example codes for "how to get the input of a 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>

Code Example 2

<input type="radio">Hi</input>

Code Example 3

//HTML Textbox w/Getting Javascript Input:
  function getTextBox(){
    var k = document.getElemntById('myTextBox').value
<input type="text" id="myTextBox">
<button onclick="getTextBox()">Get Text Input</button>

Learn ReactJs, React Native from