React Interview 2
๐ป JavaScript โ Core Concepts & Output-Based Questions
โข var vs let vs const (with scope)
โข Hoisting & how it works internally
โข Temporal Dead Zone (TDZ)
โข == vs ===
โข Closures & lexical scope retention
โข Callback hell โ Promises โ async/await
โข Event loop & handling async tasks
โข Sync vs async execution
โข Output-based puzzles on closures, TDZ, shadowing, hoisting
โข Form handling & efficient state management
โข API integration + loading/error handling
โข Why fetch calls are placed inside useEffect
โข Hooks: useState, useEffect, useMemo, useCallback
โข Context API vs Redux
โข Prop drilling & solutions
โข React state management strategies
โข React Router: relative vs absolute paths
โข Virtual DOM & reconciliation
โข Performance optimisations
โข Reducing a 5-second homepage load
โข Importance of keys in lists
โข React lifecycle
โข Avoiding unnecessary re-renders
โข Handling API errors & retry logic
๐งฉ Git โ Practical, Production-Level Scenarios
another interview
1๏ธโฃ How does the Virtual DOM actually improve performance?
2๏ธโฃ When should you use useCallback and useMemo?
3๏ธโฃ Can you explain prop drilling with a real example?
4๏ธโฃ Whatโs the difference between controlled vs uncontrolled components?
5๏ธโฃ How does React.memo() prevent unnecessary renders?
6๏ธโฃ What happens when you call setState internally?
7๏ธโฃ How do you optimize React components in large projects?
๐๐ฎ๐ ๐ญ-๐ฎ: ๐๐ฎ๐๐ฎ๐ฆ๐ฐ๐ฟ๐ถ๐ฝ๐ (๐ฑ ๐ฐ๐ผ๐ป๐ฐ๐ฒ๐ฝ๐๐) ย โข Closures (stale closures in React) ย โข Promises & async (race conditions, error handling) ย โข Event loop (execution order) ย โข This keyword (binding rules) ย โข Debouncing/Throttling (implement from scratch)
๐๐ฎ๐ ๐ฏ-๐ฐ: ๐ฅ๐ฒ๐ฎ๐ฐ๐ (๐ฑ ๐ฝ๐ฎ๐๐๐ฒ๐ฟ๐ป๐) ย โข When components re-render (4 triggers) ย โข useEffect (dependencies, cleanup, common bugs) ย โข useState (functional updates, stale closures) ย โข useCallback vs useMemo (when to use) ย โข Custom hooks (useDebounce, useFetch)
๐๐ฎ๐ ๐ฑ-๐ฒ: ๐ ๐ฎ๐ฐ๐ต๐ถ๐ป๐ฒ ๐๐ผ๐ฑ๐ถ๐ป๐ด (๐ฑ ๐ฐ๐ผ๐บ๐ฝ๐ผ๐ป๐ฒ๐ป๐๐) Build each in 45 minutes: ย โข Todo list (CRUD + localStorage) ย โข Autocomplete (debouncing + keyboard nav) ย โข Modal (accessibility + focus trap) ย โข Tabs (state management + keyboard) ย โข Infinite scroll (Intersection Observer)
๐๐ฎ๐ ๐ณ โ ๐ ๐ผ๐ฐ๐ธ ๐ถ๐ป๐๐ฒ๐ฟ๐๐ถ๐ฒ๐ โข Morning โ review weak spots โข Afternoon โ timed build (45 min) โข Evening โ mental prep & rest
Next.js
โ
I realized that if you know React well, Next.js is not a big jump.
All you need is clarity on these core concepts:
โ๏ธ SSR (Server-Side Rendering) vs CSR (Client-Side Rendering) vs Server Side Rendering
When do you prefer CSR over SSR
File-based Routing
๐ฆ API Routes in Next.js
๐ง getServerSideProps, getStaticProps, and getStaticPaths
โก App Router (app directory) and server components
two sum js react-interview-prep consulting-firm-interview-prep chess-tournament-msg cyber-attacks client-product-grooming initial-client-meet startup-interview-r0 mail