arrow_backBACK TO DRILLS
Blue BeltrenderingPREMIUM
Ternary vs separate JSX branches
A component conditionally renders either <li>{name}</li> or <li>{name} ✅</li> using an if statement with two separate returns. Another version uses a single <li> with a ternary expression inside. How does React treat these two implementations?