ohansemmanuel/polymorphic-react-component
关于
Companion repo for my build a polymorphic React component class
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文
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
Watch me teach this course on Udemy
Presentation on Excalidraw (open in incognito to not override your current drawings )
Read more
- Polymorphic components in the wild: Chakra UI and Material UI
- JSX: Choosing type at runtime
- Typescript Generics
- Typescript Generics and arrow functions:
- Why color appears as HTML attribute on a div?
- React Ref: Forwarding Refs
Download the accompanying ebook and receive my 5-day typescript secrets newsletter

You'll automatically receive my 5-day newsletter to get you thinking and writing Typescript like a pro 🕺
探索相关项目
加载中…