Skip navigation
⚛️ One component, many forms: the power of polymorphic React components ↓
0:00 / 1:12

⚛️ One component, many forms: the power of polymorphic React components ↓

George Moller

@_georgemoller118K followers

Visit on X
792 likesDownloadOriginal post

59,762 views

⚛️ One component, many forms: the power of polymorphic React components ↓

10 Comments

Comments from the original post on X (Twitter)

  • George Moller's profile picture

    @_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

  • Žilvinas's profile picture

    @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

  • 🪖Retro Tech🥷🏻's profile picture

    @Rex_mekus

    So curious, what video editor is this?

    3 likes

  • skai's profile picture

    @brownRasgulla

    Great infomatic! May I know what software you used to create it?

    2 likes

  • Mahmood Tareq's profile picture

    @devatTheCave

    Thanks for displaying in typescript as well. Good work, George. Thank you.

    1 like

  • Jakub Jetleb's profile picture

    @JakubJetleb

    Making literary same thing rn

    1 like

  • Michael Soriano's profile picture

    @dev_msoriano

    This is slick

    1 like

  • Erick's profile picture

    @ErickPrimeHere

    Button as span, button as body

  • Name cannot be blank's profile picture

    @malina_dev

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

  • among us's profile picture

    @lotrezxd

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