ریاکت
هوکها، reconciliation و معماری کامپوننت.
۲۰ مطلب
React Hooks: Top Interview Questions
useState, useEffect, useMemo, useCallback, useRef — rules and real-world answers.
Virtual DOM & Reconciliation
How React updates the UI efficiently — diffing algorithm and keys explained.
State Management: When to Use What
Local state, Context, Zustand, Redux — pick the right tool and explain why.
React Testing Library: Interview Essentials
Test behavior not implementation — queries, user events, and async patterns.
Code Splitting & React.lazy in Interviews
Reduce initial bundle size with dynamic imports and Suspense boundaries.
Refs & forwardRef: Interview Deep Dive
Access DOM nodes, imperative handles, and ref forwarding in reusable components.
React Strict Mode: Why Double Rendering Happens
Development-only behaviors that expose side effects and prepare you for concurrent React.
useEffect Cleanup Patterns Interview Guide
Subscriptions, timers, fetch abort, and avoiding memory leaks in effects.
Lifting State & Component Composition
Share state between siblings, compose with children props, and avoid prop drilling.
Lists, Keys & Reconciliation Performance
Stable keys, anti-patterns with index keys, and list virtualization basics.
React Forms & Validation: Interview Topics
Client validation, schema libraries, and accessible error messaging patterns.
Custom Hooks: Design Patterns for Interviews
Extract reusable stateful logic — fetch, media queries, localStorage, and form helpers.
React Suspense & Concurrent Features
Declarative loading states, transitions, and how React 18+ prioritizes updates.
React.memo, useMemo & useCallback in Interviews
When memoization helps, when it hurts, and how to answer 'how do you optimize React?'
React Context API: Patterns & Pitfalls
Share data without prop drilling — and avoid the re-render storms Context can cause.
React Error Boundaries: Interview Guide
Catch render errors, show fallback UI, and know what error boundaries cannot catch.
React Portals: Modals, Tooltips & Interview Use Cases
Render children into a different DOM node while preserving React tree context and events.
Controlled vs Uncontrolled Components
Who owns form state — React or the DOM? A fundamental pattern for forms and file inputs.
How JSX Works: Interview Explanation
JSX is syntactic sugar — explain what Babel compiles it to and why React needs a single root.
React Class Lifecycle: Still Asked in Interviews
Mounting, updating, unmounting phases — and how they map to hooks in modern React.