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

Code Example 1

<p align="justify">

Code Example 2

center of para

Code Example 3

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

Learn ReactJs, React Native from akashmittal.com