Code Room
Code reviewHard
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.
Learn the concepts
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.