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

Code Example 1

document.getElementById("p1").innerHTML = "New text!";

Code Example 2

document.getElementById("demo").innerHTML = "";  // Replaces the content of <p> with an empty string

Learn ReactJs, React Native from akashmittal.com