Code Room
Code reviewHardcr-g396
Subject React keysLevel Senior–Staff~20 minCommon in Code quality & review interviewsIndustries Software development

Question

Review this React TypeScript grouped table.

What a strong answer looks like

Separate real bugs from style. Rank issues by severity, point at the root cause rather than the symptom, and suggest a concrete fix — specific and kind.

Talk through your review
Code to reviewtsx
function GroupedRows({ groups }: { groups: Group[] }) {  return (    <tbody>      {groups.map((g) => (        <>          <tr key={g.id} className="header"><td>{g.name}</td></tr>          {g.items.map((it) => (            <tr key={it.id}><td>{it.label}</td></tr>          ))}        </>      ))}    </tbody>  );}
Run or narrate your approach, then ask the coach.