Does anyone know how to make this code work in a React Functional Component?
onfocus="(this.type=\'date\')" onblur="(this.type=\'text\')"