React Interview Questions

React Basic
  • ▪︎What Is a Pure Function? Why Do React Function Components Need to Be Pure?
  • ▪︎What Is JSX?
  • ▪︎Explain the Lifecycle of a React Component
  • ▪︎What Is Virtual DOM?
React Hooks
  • ▪︎What Is React Hook?
  • ▪︎Why Do We Need To Call React Hook at the Top Level? Why Can’t We Call It Inside a Loop or Condition?
  • ▪︎What Is useEffect? What Is the Difference Between useEffect and useLayoutEffect?
React Advanced
  • ▪︎Why Do We Need to Add Keys When Rendering Lists in React?
  • ▪︎Why Use Immutable Syntax When Updating React State?