Check out example codes for "how to insert degree symbol in html". It will help you in understanding the concepts better.

Code Example 1

<!--degree symbol in UNICODE use-->
&deg; or &#176;

Learn ReactJs, React Native from akashmittal.com