Check out example codes for "svg icon not showing html". It will help you in understanding the concepts better.

Code Example 1

<div class="social-icon">
<object data="assets/twitter-wrap.svg" type="image/svg+xml"></object>
</div>

Learn ReactJs, React Native from akashmittal.com