Question Bank · Section 03
Component Types & Patterns
12 questions. Controlled vs uncontrolled components, refs, conditional rendering, pure components, HOCs, prop drilling and the patterns used to build scalable component trees.
Interviewers use these questions to see whether you can design components, not just write them. Expect to compare patterns (HOC vs hooks vs render props, Context vs composition) and to explain the trade-offs behind each choice.
01What are controlled and uncontrolled components?02What are controlled & uncontrolled events?03How can we directly access DOM in React? (Refs)04What are inline functions in React?05What is conditional rendering in React?06What are Pure Components in React?07What are Higher Order Components (HOC) and their uses?08What is Prop Drilling?09Avoiding prop drilling: Context API vs event emitters vs composition patterns10Building scalable component architecture (Container-Presenter pattern, compound components, render props)11What are error boundaries and what can't they catch?12What is forwardRef and how did React 19 change it?