Check out example codes for "how to set a date for type date inpt". It will help you in understanding the concepts better.

Code Example 1

<input type="date" id="start" name="trip-start" value="2018-07-22">

Learn ReactJs, React Native from akashmittal.com