React Interview Question



This content originally appeared on DEV Community and was authored by ZeeshanAli-0704

React Topics

  1. React Context
  2. Hooks:
    • useState
    • useEffect
    • useReducer
  3. Basics of React Router:
    • Understanding React Router v6
  4. Memoization Hooks:
    • useMemo
    • useCallback
  5. Redux:
    • Setting up Redux
    • Implementing Redux Dev Toolkit
  6. API Integration
  7. Peer Dependencies:
    • What are they?

Advanced Questions

  1. What is a pure function?
  2. What is a Higher-Order Component (HOC)?
    • Examples of HOCs you have used.
  3. What is render props?
  4. Custom Hooks:
    • Difference between custom hooks, functions, and components.
  5. How does the Virtual DOM work in React?
  6. What is reconciliation in React?
  7. Controlled vs. Uncontrolled Components:
    • Which one is better and why?
  8. What is memoization and how can it be achieved in React?
  9. Toolchains in React:
    • What is a toolchain?
  10. Code Splitting in React:
    • How to achieve it?
  11. JavaScript Concepts:
    • What is hoisting?
    • Difference between Array.forEach() and Array.map().
    • Explain the event loop.
    • Name one JavaScript engine.
    • Is JavaScript object-oriented? If not, what type is it?
  12. React Props:
    • What is the children prop?
  13. React Portals:
    • What are they and why are they useful?
  14. Performance Optimization in React:
    • Common techniques.
  15. Refs in React:
    • How to create refs.
  16. Spread Operator (...) in React:
    • What do these three dots do?


This content originally appeared on DEV Community and was authored by ZeeshanAli-0704