arrow_backBACK TO DRILLS
Blue Beltstate-basicsPREMIUM
Active index better than booleans
In an accordion where only one panel can be open at a time, why is activeIndex usually a better state design than storing two separate booleans?
In an accordion where only one panel can be open at a time, why is activeIndex usually a better state design than storing two separate booleans?