how to set attribute value in javascript react from a file type tag code example Example: react file input <input type="file" />