- var itemsCount = this.state.items.length; .builds.builds__timeline(class="builds__timeline-#{itemsCount % 2 ? 'left' : 'right'}") if itemsCount each build, index in this.state.items Item(build=build, key=build.id) else p Build history is empty