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

Code Example 1

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

Code Example 2

text-align: justify;

Code Example 3

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

p.date {
    text-align: right;
}

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

Code Example 4

h1 {
    text-align: center;
}

p.date {
    text-align: right;
}

 
p.main {
    text-align: justify;
}

Code Example 5

<p align="justify">

Learn ReactJs, React Native from akashmittal.com