Frontend Interview Prep: Searchable Data Table Challenge

Mock Machine Coding Prompt for Frontend Developers 💻 If you're preparing for frontend interviews, machine coding rounds can feel intimidating. The best way to get comfortable? 👉 Practice with realistic prompts. Here’s a mock machine coding challenge you can try today 👇 🎯 Problem Statement — Build a Searchable & Paginated Data Table Create a frontend application that displays a list of users in a table. Your solution should support: ✅ Table rendering Display columns: Name, Email, Role ✅ Search functionality • Search by name or email • Case-insensitive • Instant filtering (no reload) ✅ Pagination • Show 5–10 rows per page • Next / Previous navigation • Current page indicator ✅ Sorting • Sort by Name and Role • Toggle ascending / descending ⭐ Bonus (if time permits) • Loading state • Empty state (no results found) • Debounced search • Responsive layout • Accessible table semantics ⏱ Suggested Constraints • Time limit → 60–90 minutes • No external table libraries • Focus on clean component design • Code readability over perfection 🧠 What You Should Practice While Solving • Component breakdown • State placement decisions • Derived vs stored state • Edge case handling • Incremental delivery Pretend you’re in a real interview: 👉 Clarify assumptions 👉 Think aloud 👉 Explain trade-offs If you try this challenge, comment “DONE” — I’d love to know how it went. More mock prompts coming soon 🚀 #FrontendDevelopment #MachineCoding #InterviewPrep #React #WebDevelopment #LearningInPublic

To view or add a comment, sign in

Explore content categories