Check out example codes for "how to center text in html". It will help you in understanding the concepts better.

Code Example 1

text-align: center;

Code Example 2

<tag class="" align='center'></tag>

Code Example 3

<p><center>YourText</center></p>

Code Example 4

With the aid of internal or external CSS you can center text with:

text-align: center;

Code Example 5

text-align: center;

Code Example 6

<center>Dieser Text wird zentriert.
<p>Ebenso dieser Paragraph.</p></center>

Learn ReactJs, React Native from akashmittal.com