JSFiddle - React, Tailwind, and code Playground
@author Roman Grinyov <roman@grinyov.name>
HTML
<input type="file">
<div></div>
JavaScript
// jQuery 3.1.1
$('input').on('change', function() {
var splittedFakePath = this.value.split('\\');
$('div').text(splittedFakePath[splittedFakePath.length - 1]);
});