Check out example codes for "html date placeholder". It will help you in understanding the concepts better.

Code Example 1

<input placeholder="Date" class="textbox-n" type="text" onfocus="(this.type='date')" id="date">

Code Example 2

<input type="text" placeholder="Date of birth" onfocus="(this.type='date')">

Learn ReactJs, React Native from akashmittal.com