Check out example codes for "footer credits with jquery date time". It will help you in understanding the concepts better.

Code Example 1

© <span id="copyright"> <script>$('#copyright').text(new Date().getFullYear());</script> </span>

Learn ReactJs, React Native from akashmittal.com