Check out example codes for "css click event jquery". It will help you in understanding the concepts better.

Code Example 1

$('h1').click(function () {
        $(this).css('color', 'blue')
    });

Learn ReactJs, React Native from akashmittal.com