Check out example codes for "display div while load". It will help you in understanding the concepts better.

Code Example 1

<script>
  $(window).load(function() {
    $('#loading').hide();
  });
</script>

Learn ReactJs, React Native from akashmittal.com