JSFiddle - React, Tailwind, and code Playground

by Harry Potter

HTML

<script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
<input type="file" name="input-imagem" id="input-imagem" >

JavaScript

$('#input-imagem').on('change', function() {
    if ($(this).val() != ""){
       alert( $(this).val());
    }
});