Check out example codes for "javascript the difference between innerText vs. innerHTML vs. textContent". It will help you in understanding the concepts better.

Code Example 1

getValue.textContent// =>   This element is strong and     has some super fun code!

Code Example 2

getValue.innerHTML// =>   This element is <strong>strong</strong> and     has some super fun <code>code</code>!

Learn ReactJs, React Native from