Put in order · JavaScript and React course · Module 7: Styling and Animations
Basics: styled-component Syntax with Props
Arrange the correct styled-component syntax with a dynamic color:
Items to put in order
- color:
- const Button = styled.button`
- ${props => props.primary ? 'blue' : 'gray'};
- `;
You can check the correct answer by solving this task in the CodeWorlds game.