Interview practice question
Typing a generic data table component
Frontend Engineering · TypeScript · Experienced
How would you type a reusable table component that renders any row type with configurable columns?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Generic over row type T.
- Column definitions with key: keyof T or accessor functions.
- Render function receives T[K] types.
- Inference from data prop.
- Libraries (TanStack Table) patterns.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.