function List({ items }: { items: string[] }) { return ( <ul> {items.map((it) => ( <li key={it}>{it}</li> ))} </ul> ); }
map to elements with a key