Skip to content

Companion repo for my build a polymorphic React component class

Notifications You must be signed in to change notification settings

emmanuelonah/polymorphic-react-component

 
 

Repository files navigation

https://i.imgur.com/oNNDQDC.png


Polymorphic: occurring in several different forms, in particular with reference to species or genetic variation...



How to read the code

Read the implementation snippets from 01 to 06

01: A basic polymorphic component implementation

02: Handling relevant component props:

03: Providing a default generic type:

04: Handling unique component props

05: Building a reusable polymorphic type utility

06: Handling polymorphic components with Ref



Relevant Links



Read more



Download the accompanying ebook and receive my 5-day typescript secrets newsletter

Download ebook here.


https://i.imgur.com/U62L81u.png

You'll automatically receive my 5-day newsletter to get you thinking and writing Typescript like a pro 🕺

About

Companion repo for my build a polymorphic React component class

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 70.9%
  • HTML 18.9%
  • CSS 10.2%