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

Code Example 1

document.getElementsByTagName("head")[0].insertAdjacentHTML(
    "beforeend",
    "<link rel=\"stylesheet\" href=\"path/to/style.css\" />");

Learn ReactJs, React Native from akashmittal.com