Q. What happens if you call setState() inside render()?
β
Correct Answer: (C)
It causes an infinite loop
Explanation: Calling setState() in render() causes an infinite loop of rendering and state updates.