Q. Which hook replaces lifecycle methods in functional components?
β
Correct Answer: (A)
useEffect
Explanation: useEffect allows performing side effects and replaces componentDidMount, componentDidUpdate, and componentWillUnmount.