Become a member
to unlock all features

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

Create account

    Style a React Component with Styled Components


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

    I've done a lesson on how to style HTML elements with Styled Components but now it's time to style React Components. We'll be able to wrap a React component in a styled component to extend the style of that component.

    In this lesson, we will style a button from material-ui and adjust his size with css.