Check out example codes for "js add css to document". It will help you in understanding the concepts better.

Code Example 1

document.querySelector('head').innerHTML += '<link rel="stylesheet" href="styles.css" type="text/css"/>';

Learn ReactJs, React Native from akashmittal.com