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

Code Example 1

var m = document.getElementById("myelement"), c = m.style;
c.color = "#c00";
c.backgroundColor = "#eee";
c.width = "200px";
c.height = "100px";
c.borderColor = "#f00";

Learn ReactJs, React Native from akashmittal.com