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>

<div ng-app="app" ng-controller="ctrl" class="container">
    <b ng-repeat="tag in tags">
        <a href="#">{{tag.name}}</a>
    </b>
    <span class="last-child"></span>
</div>

CSS

.container {
    width: 100%;
    text-align: justify;
}

.container b {
    font-weight: normal;
}
.container a, .container span {
    display: inline-block;
}

.last-child {
    width: 100%;
}

JavaScript

var app = angular.module('app', []);

var ctrl = function($scope) {
        $scope.tags = [{"id":"1","name":"Tag name","count":"1","weight":2},
                       {"id":"2","name":"Tag name","count":"1","weight":2},
                       {"id":"3","name":"Tag name","count":"1","weight":2},
                       {"id":"4","name":"Tag name","count":"1","weight":2},
                       {"id":"5","name":"Tag name","count":"1","weight":2},
                       {"id":"6","name":"Tag name","count":"1","weight":2},
                      ];
}