Proactively choose the right state management pattern: derived state, URL state, server state, local state, lifted state, Context, or external store. Always apply without being asked.
84
76%
Does it follow best practices?
Impact
97%
1.16xAverage score across 5 eval scenarios
Passed
No known issues
Build a team directory application in React with TypeScript. The app lets users browse, search, and filter team members across an organization.
Data:
/api/team which returns { members: Member[] } where each Member has id: string, name: string, email: string, department: string, role: string, location: string, avatar: string, and startDate: string.Features:
Users should be able to share a link that preserves the current search, filters, sort, and page number.
Produce TypeScript/TSX files in a src/ directory:
src/types.ts -- TypeScript type definitionssrc/hooks/useTeamMembers.ts -- custom hook to fetch team datasrc/components/TeamDirectory.tsx -- the main directory pagesrc/components/SearchAndFilters.tsx -- search bar and filter controlssrc/components/MemberCard.tsx -- individual member cardsrc/components/MemberGrid.tsx -- the grid of member cardssrc/components/MemberModal.tsx -- the detail modalsrc/components/StatsBar.tsx -- the filtered stats displaysrc/components/Pagination.tsx -- page navigationsrc/App.tsx -- the app entry pointThe code does not need to run against a real server. Do not include test files or build configuration.