React interview questions
Study 8 topics in order — from setup and basics to the questions interviewers actually ask. Answers include code, tables, and a short speaking tip.
React Basics and JSX
Understand JSX, virtual DOM rendering, render loops, initial setups, state vs props, and React components.
Components (Class vs Functional, Pure Components)
Differentiate class components from functional components, pure components, lifecycle methods, and reusable pr...
Hooks (useState, useEffect, useContext, useReducer)
Master functional component state management, side-effects, context providers, state reduction, and custom hoo...
State Management (Redux, Context API)
Manage global app state. Differentiate Context API for small state and Redux, actions, reducers, and stores fo...
Advanced React Patterns
Learn React patterns like higher-order components (HOC), render props, custom hooks, compound components, and...
React Router and Navigation
Implement client-side routing. Learn Route definitions, dynamic parameters, route guards, navigation links, an...
Performance Optimization and Code Splitting
Optimize React load times. Learn lazy loading, Suspense boundaries, memoization, useMemo, useCallback, and vir...
Testing React Applications
Write solid unit and integration tests using Jest and React Testing Library. Mock API calls and user interacti...