1×
Become a member
to unlock all features

Create egghead account to access 5000+ tutorials and resources from expert developers.

Create account
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.