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

    Use the `attrs` method to add HTML attributes in styled-components

    reactReact

    In this lesson, we will learn about the attrs method that allows us to change and add attributes to our styled elements.

    We will use to add some defaults for the type of a button.