Check out example codes for "html <svg> path star". It will help you in understanding the concepts better.

Code Example 1

<polygon points="100,10 40,198 190,78 10,78 160,198" style="fill-rule:nonzero;"/>

Learn ReactJs, React Native from akashmittal.com