DEV Community

Discussion on: How to use Styled Components in your ReactJs project

Collapse
 
bourhaouta profile image
Omar Bourhaouta

One of my favorite features is as, and you can use it like this:

<AppHeader as="div">
So AppHeader tag will be a `div` instead of a `p`
And the best use case for this one is creating dynamic components
such as buttons that can be `a`, `button` or any other HTML tag
</AppHeader>