JSFiddle - React, Tailwind, and code Playground

@author Roman Grinyov <[email protected]>

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]);
});