Check out example codes for "htmls white space". It will help you in understanding the concepts better.

Code Example 1

<!--   Add leading white space in front of text  -->

&nbsp;Hello World

<!--    Output:   ' Hello World'    -->

Code Example 2

Html whitespace

Learn ReactJs, React Native from akashmittal.com