Q. How can you prevent a component from rendering in React?
β
Correct Answer: (A)
Return null from the render method or functional component
Explanation: Returning null tells React to render nothing for that component.