What is HOC (Higher-Order Component) in React?
Interview Answer A Higher-Order Component (HOC) is a function that takes a React component as…
Interview Answer A Higher-Order Component (HOC) is a function that takes a React component as…
Interview Answer useContext() is a React Hook that allows components to access shared data from…
Interview Answer GraphQL is a query language for APIs that allows clients to request exactly…
Interview Answer Reconciliation is React’s process of comparing the previous Virtual DOM with the new…
Feature useState() useRef() Causes Re-render ✅ Yes ❌ No Stores Data ✅ Yes ✅ Yes…
Feature export default export (Named Export) Number per file Only 1 Multiple allowed Import name…
Interview Answer If I need to export multiple variables, functions, or components from the same…
Interview Answer (Short) SSR (Server-Side Rendering) generates HTML on the server before sending it to…
Code Splitting is a performance optimization technique where the JavaScript bundle is divided into smaller…
Interview Answer (Short) useMemo() is used to cache the result of an expensive computation and…