Put in order · JavaScript and React course · Module 7: Styling and Animations
Dynamic CSS Class in React
Arrange the elements of a dynamic className with template literal from left to right:
Items to put in order
- className={
- ${isActive ? 'active' : ''}
- `}
- `card
You can check the correct answer by solving this task in the CodeWorlds game.