DEV Community

Discussion on: Reusing CSS With Styled Components

stephencweiss profile image
Stephen Charles Weiss Author

Oy - thank you for pointing that out! That's a mistake on my end.

I've updated the post to reflect what I meant. Bear in mind that the use of input and button are purely illustrative and could be anything. The bigger point is that the base elements are different and so can't simply be extended.

But we can use the css method to create a shared UI and eliminate some duplication.