Sample requirements for a live coding interview task to illustrate scope and expectations.
Switch to the audio version if you prefer to learn by listening rather than reading.
AI-generated audio transcript
You are given a small React project with a minimal setup:
<App />
component where you can add your codefetchUsers()
that returns a list of users after a short delayYour goal is to build a User List component that fetches and displays user data with proper states.
Fetch Data
fetchUsers()
function to load data.{ id, name, email }
.Display Users
name
and email
for each user.Handle States
Add Interaction
Stop at rendering the happy path only
Implement loading, error, and empty states clearly
You may install external libraries if you believe they help solve the problem faster or more clearly. However, you must:
For example:
axios
for data fetching is acceptable, but you should mention that fetch()
is already available natively and demonstrate how it would work.classnames
is fine, but be clear that conditional class handling can also be done manually with string concatenation.The interviewer wants to see judgment, not dependency.
Add libraries just to look advanced without justification
Explain trade-offs when introducing a library
This task is not about showing off libraries, it's about showing that you can deliver reliable, understandable front-end code under realistic conditions.