Check out example codes for "html setting the valuw of an input field". It will help you in understanding the concepts better.

Code Example 1

<form 
    action="/action_page.php">

  <label for="fname">First name:</label>
  <input type="text" id="fname" 
    name="fname" value="John"><br><br>
  <label for="lname">Last 
    name:</label>
  <input type="text" id="lname" name="lname" 
    value="Doe"><br><br>
  <input type="submit" value="Submit">

    </form>

Learn ReactJs, React Native from akashmittal.com