⚛️ One component, many forms: the power of polymorphic React components ↓
@_georgemoller118K followers
59,762 views
10 Comments
Comments from the original post on X (Twitter)

@_georgemoller
I've been working professionally with React for more than 8 years and I compiled all my knowledge into 100+ infographics and 80+ video tutorials just like this one. Check them out ↓
3 likes

@ZilvinasAbr
What do you think of Radix’s slot pattern? I find it more pleasant to use than ‘as’ prop, e.g. when I want to render Button as next/link component. The props get separated between the components rather than mixed on a single component
4 likes

@Rex_mekus
So curious, what video editor is this?
3 likes

@brownRasgulla
Great infomatic! May I know what software you used to create it?
2 likes

@devatTheCave
Thanks for displaying in typescript as well. Good work, George. Thank you.
1 like

@JakubJetleb
Making literary same thing rn
1 like

@dev_msoriano
This is slick
1 like

@ErickPrimeHere
Button as span, button as body

@malina_dev
why not just use span and div, seems pointless someone please enlighten me

@lotrezxd
whats the point? you should use semantic elements for their appriopriate use to keep your website accessible
