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

Code Example 1

<svg width="400" height="100">  <rect width="400" height="100" style="fill:rgb(0,0,255);stroke-width:10;stroke:rgb(0,0,0)" 
 /></svg>

Code Example 2

<img src="image.svg" />

Learn ReactJs, React Native from akashmittal.com