이 레슨은 당분간 영어로 제공돼요.
Style from state
A menu is open, a tab is selected, a box is ticked. The page already knows, because that state lives in attributes such as aria-expanded and data-state. Tailwind can style straight from them, so you do not need JavaScript to swap class names.