How do you use SASS to manage state-based styling?
Description : Managing state-based styles (e.g., hover, active) with SASS.
Answer :
Managing state-based styling inSASS involves using nested selectors and mixins to handle different states like hover or active. For example, define a button style and its hover state:`.btn { background: blue; &:hover { background: darkblue; } }`. This approach organizes styles by state and keeps related rules together, improving readability and maintainability.