Generic Types in React Components
Today I learned you can pass generic type params to react components and I almost vomited return ( <Switcher<Tab> options={switcherOptions} selected={activeTab} onChange={(newTab: Tab) => setActiveTab(newTab)} /> )
A programming tweet shows a React component written with a generic type parameter, followed by the caption “Today I learned you can pass generic type params to react components and I almost vomited.” The joke is that the syntax looks unpleasant or overly complicated to the author, so the code provokes an exaggerated disgust reaction. It is shared by developers reacting to confusing, verbose, or disliked TypeScript patterns. EN: A programming tweet shows a React component written with a generic type parameter, followed by the caption “Today I learned you can pass generic type params to react components and I almost vomited.” The joke is that the syntax looks unpleasant or overly complicated to the author, so the code provokes an exaggerated disgust reaction. It is shared by developers reacting to confusing, verbose, or disliked TypeScript patterns.
- @gentoomemes / 17166 2025-05-07
- Type
- image
- Size
- 720×675 · 51.8 KiB
- Mood
- саркастичный, отвращение
- Language
- en
- Added