What is the useEffect hook?
useEffect is used to handle side effects such as API calls or subscriptions.
Practice exam-ready one liner questions for Interview Practice with quick answers for SSC, Railway, Banking and competitive exams.
Total Questions: 54
useEffect is used to handle side effects such as API calls or subscriptions.
useContext allows you to access context values directly inside functional components.
A custom hook is a reusable function that uses other React Hooks.
No, Hooks cannot be used in class components.
useReducer is used for managing complex state logic.
useMemo memoizes computed values to improve performance.
useCallback memoizes functions to avoid unnecessary re-renders.
useRef is used to persist values between renders and access DOM elements.
useState is simpler for basic state while useReducer handles complex logic.
Lazy initialization allows state initialization using a function.
Copyright 2026 Exambodh - aptitude, reasoning & verbal practice.