Loops

{for item in list} … {empty} … {/for} repeats part of the view, like list.map() in React.

A list with its index and an empty state

  • 1. Banana
  • 2. Mango
  • 3. Papaya

Keys keep each row

Type in a box, then reverse: each text stays with its person because of key person.id.

  • Maxamuud Xussen Mogadishu
  • Cali Hargeisa
  • Sahra Kismayo

An object

name
Maxamuud
role
Developer
city
Mogadishu

Counting, nested, in a table

1234
2468
36912
481216