Check out example codes for "thymeleaf for loop". It will help you in understanding the concepts better.
Code Example 1
<tr th:each="student: ${students}">
<td th:text="${student.id}" />
<td th:text="${student.name}" />
</tr>
Learn ReactJs, React Native from akashmittal.com