JSFiddle - React, Tailwind, and code Playground

by jmpp77

HTML

<input type="file" id="monFichier" multiple>

JavaScript

const monFichier = document.getElementById('monFichier');

// Dès que le champs input change de valeur
monFichier.onchange = function() {
	console.log(monFichier.files[0]);
}