Recently Asked Frontend Interview Questions Over the past few weeks, I’ve faced multiple interviews for senior frontend roles:- 1️⃣ What’s the difference between useMemo and useCallback? → How do you prevent unnecessary re-renders and stale dependencies? This concept has maximum questions, only theoretical explanation isn't suffice. 2️⃣ How does Garbage Collection work in JavaScript? → What triggers memory cleanup, and how do closures and event listeners affect it? 3️⃣ How do you identify and fix a Memory Leak in a React app? → How do you know your app is leaking memory (Chrome DevTools → Performance tab, heap snapshots, detached DOM nodes)? → From where would you start debugging and fixing — e.g., unmounted components with active subscriptions, uncleaned timers, or stale refs? 4️⃣ How do you decide between multiple third-party libraries for the same use case? 5️⃣ When to use Monorepo vs Micro-frontend architecture? 6️⃣ Create a custom hook for data fetching → It should accept a config prop, be reusable, handle errors, and avoid unnecessary re-renders. 7️⃣ How do you optimize image rendering in React? 8️⃣ How do you handle lazy loading, code splitting, and performance optimization? 9️⃣ Difference between interface and type in TypeScript 🔟 What are Tuples in TypeScript? 1️⃣1️⃣ When to use Redux vs Context API? → Context for lightweight global state; Redux for predictable, scalable, middleware-driven state flows. 1️⃣2️⃣ Build a Stopwatch in React → Must include play, pause, and reset — manage timers efficiently to avoid leaks. 1️⃣3️⃣ Build a Counter that oscillates 0 → 10 → 0 continuously → Should support play, pause, reset, and retain direction. 💡 These questions go beyond syntax! #ReactJS #FrontendDevelopment #JavaScript #TypeScript #FrontendInterview
Thanks vikram for sharing
Really good set of questions. It will be helpful for those who need it Vikram S.
Vikram S. Loved the React questions you shared! ❤️ Would love to see them added to our community-driven site — https://www.ebat.dev/frontend/react/questions
Thank you 🙏
Thanks
Great share 👍