Put in order · JavaScript and React course · Module 14: Advanced Styling
Conditional Classes in CSS Modules
Arrange the syntax for combining CSS Modules classes with a condition using a template literal:
Items to put in order
- styles.active
- ${isActive ?
- : ''}
- ${styles.panel}
You can check the correct answer by solving this task in the CodeWorlds game.