Check out example codes for "what are the different text align in html". It will help you in understanding the concepts better.

Code Example 1

/* There are four different text align values: left, right, center 
     and justify. For example: */
text-align: center;

Code Example 2

.class {
	text-align: center;
}

Learn ReactJs, React Native from akashmittal.com