Testing · Middle · Question 24 of 75
How do you test that a component reacts to new props?
- ✓Correct answer: Call
rerender(<Comp value="new" />)returned byrender - 2Change
props.valuedirectly - 3Unmount and render a second component in a new container
Explanation
rerender updates the same tree, so state and effects behave like in the app.