JSFiddle - React, Tailwind, and code Playground

by Eric Hynds

HTML

<input type="file" id="foo" />

JavaScript

document.getElementById("foo").setAttribute("type","email");