arrow_backBACK TO DRILLS
Blue Beltrendering
Returning null vs conditional parent rendering
A React component sometimes returns null when a prop is true so that nothing appears on screen. Another developer suggests conditionally rendering the component from the parent instead. Why is the parent-controlled approach usually preferred?