Check out example codes for "input type=file events jquery". It will help you in understanding the concepts better.

Code Example 1

$("document").ready(function(){

    $("#upload").change(function() {
        alert('changed!');
    });
});

Learn ReactJs, React Native from akashmittal.com