how to take input as file and view document from react code example Example: react file input <input type="file" />