egghead.io
illustration for Styling React Applications with Styled Components

Course

Styling React Applications with Styled Components

  1. 1
    Style an HTML Element with Styled Component
    1m 31s
  2. 2
    Style a React Component with Styled Components
    1m 24s
  3. 3
    Creating Global Styles with Styled Components
    1m 10s
  4. 4
    Adjust Style based on props with Styled Components
    2m 22s
  5. 5
    Animate Styled Components in React
    1m 23s
  6. 6
    Create and use a Theme in Styled Components
    2m 35s
  7. 7
    Style pseudo-selectors and classes in Styled Components
    1m 20s
  8. 8
    Using the `css` prop to define styles in Styled Components
    1m 48s
  9. 9
    Using the `as` prop to reassign the HTML tag
    1m 34s
  10. 10
    Use the `attrs` method to add HTML attributes in styled-components
    1m 34s
  11. 11
    Use Styled Components with the Object syntax
    2m 6s
  12. 12
    Style a component based on complex props with Styled Components
    4m 51s

Using the `as` prop to reassign the HTML tag

Sara Vieira
InstructorSara Vieira
  • react
    React

Share this video with your friends

Send Tweet

In this lesson, we will use the as prop to reassign the HTML tag that is associated with one of our styled components.

The as prop will be used to reassign a button element to be an a element

Build your Developer Portfolio and climb the engineering career ladder.
  • Search
  • Talks
  • Podcasts
  • Machine
  • Pricing
  • Store
©egghead.io
Terms & Conditions