JSFiddle - React, Tailwind, and code Playground

by mohammadAdil

HTML

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

JavaScript

$('#file').on('change',function(){
  console.log($("#file").val())
});