JSFiddle - React, Tailwind, and code Playground
HTML
case 1:
<div class="container">
<a href="#">Lorem ipsum</a>
<a href="#">Lorem ipsum</a>
<a href="#">Lorem ipsum</a>
<a href="#">Lorem ipsum</a>
<a href="#">Lorem ipsum</a>
<a href="#">Lorem ipsum</a>
<span class="last-child"></span>
</div>
case 2:
<div class="container">
<a href="#">Lorem ipsum</a><a href="#">Lorem ipsum</a><a href="#">Lorem ipsum</a><a href="#">Lorem ipsum</a><a href="#">Lorem ipsum</a><a href="#">Lorem ipsum</a>
<span class="last-child"></span>
</div>
CSS
.container {
width: 100%;
text-align: justify;
}
.container a, .container span {
display: inline-block;
}
.last-child {
width: 100%;
}