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

Code Example 1

div.a {
  text-align: center;
}


    div.b {
  text-align: left;
}


    div.c {
  text-align: right;
}

div.c {
  text-align: 
    justify;
}

Code Example 2

<switch>
    h1 {
    text-align: center;
}

p.date {
    text-align: right;
}

 
p.main {
    text-align: justify;
} 
</Switch>

Code Example 3

.class {
	text-align: center;
}

Code Example 4

body {
  text-align: center;
}

Code Example 5

text-align: center

Code Example 6

div {
  text-align: justify;
  text-justify: inter-word;
}

Learn ReactJs, React Native from akashmittal.com