1×
Become a member
to unlock all features

Level Up!

Access all courses & lessons on egghead today and lock-in your price for life.

Autoplay

    Adjust Style based on props with Styled Components

    reactReact

    In this lesson, we are going to learn how to add styles to a react component using the styled-components library.

    We will get a list of people and give a diffrent color and background color when their position in the list is an even number, like zebra stripes.