Check out example codes for "cshtml foreach". It will help you in understanding the concepts better.

Code Example 1

@foreach (var item in Model.Foos)
{
    <div>@item.Bar</div>
}

Learn ReactJs, React Native from akashmittal.com