title: How do I use "onfocus" &. "onblur" for input type date in React Functional Component?
body: <p>Does anyone know how to make this code work in a React Functional Component?</p>
  <pre><code>onfocus=&quot;(this.type='date')&quot; onblur=&quot;(this.type='text')&quot;
  </code></pre>
  <p>I am trying to get placeholder text to appear prior to the user clicking on the input element. Then when clicked, the input will change to MM/DD/YYYY.</p>
  <p><strong>Trying to emulate something like this in my React project:</strong> <a href="https://stackoverflow.com/a/34565565/14677057">https://stackoverflow.com/a/34565565/14677057</a></p>
  <p>Would appreciate any help! Thank you!</p>