Check out example codes for "set multiple attributes css javascript". It will help you in understanding the concepts better.

Code Example 1

document.getElementById("myElement").style.cssText = "display: block; position: absolute";

Learn ReactJs, React Native from akashmittal.com