What are React Hooks?
React Hooks are special functions introduced in React that let functional components use features like state, lifecycle methods, context, and refs without writing class components.
Practice exam-ready one liner questions for Interview Practice with quick answers for SSC, Railway, Banking and competitive exams.
Total Questions: 54
React Hooks are special functions introduced in React that let functional components use features like state, lifecycle methods, context, and refs without writing class components.
useEffect cannot return a value except a cleanup function.
Common use cases include API calls, event listeners, timers, and subscriptions.
Side effects are operations that affect something outside the component such as data fetching or DOM manipulation.
Incorrect dependencies can cause unnecessary renders or stale values.
Stale state happens when an effect uses outdated state values.
Infinite loops happen when state updates trigger effects repeatedly due to wrong dependencies.
By using correct dependency arrays and memoization techniques.
Yes, multiple useEffect hooks can be used for different side effects.
It enables lifecycle-like behavior and side effect management in functional components.
Copyright 2026 Exambodh - aptitude, reasoning & verbal practice.