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

Code Example 1

$("p").css("background-color", "yellow");

Code Example 2

$('.name').css('color':'blue');

Code Example 3

$('#yourElement').css('display', 'none');

Code Example 4

//Set one style attribute
$('#element').css('display', 'block');
//Set multiple style attributes
$('#element').css({'display': 'block', 'background-color' : '#2ECC40'}); /* Multiple style *

Code Example 5

$('#element').css('display', 'block'); /* Single style */
$('#element').css({'display': 'block', 'background-color' : '#2ECC40'}); /* Multiple style */

Code Example 6

$(init);
    
function init() {
    $("h1").css("backgroundColor", "yellow");
    $("#myParagraph").css({"backgroundColor":"black","color":"white");
    $(".bordered").css("border", "1px solid black");
}

Learn ReactJs, React Native from akashmittal.com