JSFiddle - React, Tailwind, and code Playground

by Vadim

HTML

<input type="file" id="picker">

JavaScript

picker.addEventListener('change', (e) => console.log(e.target.files[0]))