René's URL Explorer Experiment


Title: What is the right way to use generic components with JSX? · Issue #3960 · microsoft/TypeScript · GitHub

Open Graph Title: What is the right way to use generic components with JSX? · Issue #3960 · microsoft/TypeScript

X Title: What is the right way to use generic components with JSX? · Issue #3960 · microsoft/TypeScript

Description: Hello, I have a generic component, e.g. class Select extends React.Component, any>. Is there any "right" way to use it from JSX? It is impossible to write something like /> in JSX. The best thing that I'...

Open Graph Description: Hello, I have a generic component, e.g. class Select extends React.Component, any>. Is there any "right" way to use it from JSX? It is impossible to write something like

X Description: Hello, I have a generic component, e.g. class Select<T> extends React.Component<SelectProps<T>, any>. Is there any "right" way to use it from JSX? It is impossible to wr...

Opengraph URL: https://github.com/microsoft/TypeScript/issues/3960

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"What is the right way to use generic components with JSX?","articleBody":"Hello,\n\nI have a generic component, e.g. `class Select\u003cT> extends React.Component\u003cSelectProps\u003cT>, any>`. Is there any \"right\" way to use it from JSX?\n\nIt is impossible to write something like `\u003cSelect\u003cstring> />` in JSX. The best thing that I've found is to write\n\n``` ts\nlet StringSelect: React.Component\u003cSelectProps\u003cstring>, any> = Select;\n```\n\nAnd use `StringSelect` instead of `Select\u003cstring>`. Is there anything better?\n","author":{"url":"https://github.com/s-panferov","@type":"Person","name":"s-panferov"},"datePublished":"2015-07-21T19:28:00Z","url":"https://github.com/microsoft/TypeScript/issues/3960"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:94f43981-1fa7-32b0-1407-1e33bf469d02
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id95BC:26ECEB:FFF5DD:148590A:6B010034
html-safe-noncec454aa3ee1fa1cb43f453b366f726869ee0a13ec7e3b7fb513cbb240104ebb4d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NUJDOjI2RUNFQjpGRkY1REQ6MTQ4NTkwQTo2QjAxMDAzNCIsInZpc2l0b3JfaWQiOiI2Mjc5MzE4NTkxNzIwNDU2MjQ0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac15aed91ead99b453c6109878a711270a4ae0bc8f4ccd3eec6897bed1f56394a6
hovercard-subject-tagissue:96398755
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/3960/issue_layout
twitter:imagehttps://opengraph.githubassets.com/820f21cca338b9031e416ffd817acc0f5d384de1ee956b4be7f45a7adf44b4b9/microsoft/TypeScript/issues/3960
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/820f21cca338b9031e416ffd817acc0f5d384de1ee956b4be7f45a7adf44b4b9/microsoft/TypeScript/issues/3960
og:image:altHello, I have a generic component, e.g. class Select extends React.Component, any>. Is there any "right" way to use it from JSX? It is impossible to write something like
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernames-panferov
hostnamegithub.com
expected-hostnamegithub.com
Nonecb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124
turbo-cache-controlno-preview
go-importgithub.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git
octolytics-dimension-user_id6154722
octolytics-dimension-user_loginmicrosoft
octolytics-dimension-repository_id20929025
octolytics-dimension-repository_nwomicrosoft/TypeScript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id20929025
octolytics-dimension-repository_network_root_nwomicrosoft/TypeScript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/3960#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F3960
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F3960
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=microsoft%2FTypeScript
Reloadhttps://github.com/microsoft/TypeScript/issues/3960
Reloadhttps://github.com/microsoft/TypeScript/issues/3960
Reloadhttps://github.com/microsoft/TypeScript/issues/3960
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests309 (309)https://github.com/microsoft/TypeScript/pulls
Actionshttps://github.com/microsoft/TypeScript/actions
Projectshttps://github.com/microsoft/TypeScript/projects
Wikihttps://github.com/microsoft/TypeScript/wiki
Security and qualityhttps://github.com/microsoft/TypeScript/security
Insightshttps://github.com/microsoft/TypeScript/insights
https://github.com/microsoft/TypeScript
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/3960
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/3960
What is the right way to use generic components with JSX?https://github.com/microsoft/TypeScript/issues/3960#top
DiscussionIssues which may not have code impacthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Discussion%22
Domain: JSX/TSXRelates to the JSX parser and emitterhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Domain%3A%20JSX%2FTSX%22
https://github.com/s-panferov
Stanislav Panferov (s-panferov)https://github.com/s-panferov
on Jul 21, 2015https://github.com/microsoft/TypeScript/issues/3960#issue-96398755
Nexthttps://github.com/microsoft/TypeScript/issues/3960?timeline_page=1
Stanislav Panferov (s-panferov)https://github.com/s-panferov
on Jul 21, 2015https://github.com/microsoft/TypeScript/issues/3960#event-361541608
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on Jul 21, 2015https://github.com/microsoft/TypeScript/issues/3960#issuecomment-123456256
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
DiscussionIssues which may not have code impacthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Discussion%22
on Jul 21, 2015https://github.com/microsoft/TypeScript/issues/3960#event-361548453
https://github.com/s-panferov
Stanislav Panferov (s-panferov)https://github.com/s-panferov
on Jul 21, 2015https://github.com/microsoft/TypeScript/issues/3960#issuecomment-123460072
Ryan Cavanaugh (@RyanCavanaugh)https://github.com/RyanCavanaugh
https://github.com/s-panferov
Stanislav Panferov (s-panferov)https://github.com/s-panferov
on Jul 22, 2015https://github.com/microsoft/TypeScript/issues/3960#issuecomment-123588996
https://github.com/dead-claudia
Claudia Meadows (dead-claudia)https://github.com/dead-claudia
on Aug 18, 2015https://github.com/microsoft/TypeScript/issues/3960#issuecomment-132192858
https://github.com/smrq
Greg Smith (smrq)https://github.com/smrq
on Sep 18, 2015https://github.com/microsoft/TypeScript/issues/3960#issuecomment-141557693
#2559https://github.com/microsoft/TypeScript/issues/2559
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on Sep 18, 2015https://github.com/microsoft/TypeScript/issues/3960#issuecomment-141589898
https://github.com/evilangelist
Chris Smith (evilangelist)https://github.com/evilangelist
on Sep 30, 2015https://github.com/microsoft/TypeScript/issues/3960#issuecomment-144526995
https://gist.github.com/be0453ed4a86c79da68e.githttps://gist.github.com/be0453ed4a86c79da68e.git
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on Sep 30, 2015https://github.com/microsoft/TypeScript/issues/3960#issuecomment-144529141
https://github.com/basarat
Basarat Ali Syed (basarat)https://github.com/basarat
on Dec 17, 2015https://github.com/microsoft/TypeScript/issues/3960#issuecomment-165330151
Ryan Cavanaugh (@RyanCavanaugh)https://github.com/RyanCavanaugh
https://github.com/basarat
Basarat Ali Syed (basarat)https://github.com/basarat
on Dec 17, 2015https://github.com/microsoft/TypeScript/issues/3960#issuecomment-165335501
https://github.com/dead-claudia
Claudia Meadows (dead-claudia)https://github.com/dead-claudia
on Dec 17, 2015https://github.com/microsoft/TypeScript/issues/3960#issuecomment-165375803
my 1-token lookaheadhttps://github.com/Microsoft/TypeScript/issues/3960#issuecomment-132192858
which are implemented already when targeting ES6https://github.com/Microsoft/TypeScript/pull/5231
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on Jan 7, 2016https://github.com/microsoft/TypeScript/issues/3960#issuecomment-169724289
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
completedhttps://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jan 7, 2016https://github.com/microsoft/TypeScript/issues/3960#event-508450411
https://github.com/fraserharris
Fraser Harris (fraserharris)https://github.com/fraserharris
on Sep 19, 2016https://github.com/microsoft/TypeScript/issues/3960#issuecomment-248136802
fzzzthttps://github.com/fzzzt
https://github.com/josh-endries
Josh Endries (josh-endries)https://github.com/josh-endries
on Oct 12, 2016https://github.com/microsoft/TypeScript/issues/3960#issuecomment-253250014
https://github.com/Liero
Daniel Turan (Liero)https://github.com/Liero
on Oct 13, 2016https://github.com/microsoft/TypeScript/issues/3960#issuecomment-253428447
https://github.com/josh-endries
Josh Endries (josh-endries)https://github.com/josh-endries
on Oct 13, 2016https://github.com/microsoft/TypeScript/issues/3960#issuecomment-253506110
https://github.com/josh-endries
Josh Endries (josh-endries)https://github.com/josh-endries
on Oct 13, 2016https://github.com/microsoft/TypeScript/issues/3960#issuecomment-253511583
https://github.com/avonwyss
Arsène von Wyss (avonwyss)https://github.com/avonwyss
on Nov 16, 2016https://github.com/microsoft/TypeScript/issues/3960#issuecomment-261057366
https://github.com/mrThomasTeller
Artem Bakharev (mrThomasTeller)https://github.com/mrThomasTeller
on Nov 17, 2016https://github.com/microsoft/TypeScript/issues/3960#issuecomment-261154415
Arsène von Wyss (@avonwyss)https://github.com/avonwyss
https://github.com/avonwyss
Arsène von Wyss (avonwyss)https://github.com/avonwyss
on Nov 17, 2016https://github.com/microsoft/TypeScript/issues/3960#issuecomment-261174347
Artem Bakharev (@mrThomasTeller)https://github.com/mrThomasTeller
https://github.com/dead-claudia
Claudia Meadows (dead-claudia)https://github.com/dead-claudia
on Nov 17, 2016https://github.com/microsoft/TypeScript/issues/3960#issuecomment-261364017
#6395https://github.com/microsoft/TypeScript/issues/6395
https://github.com/caesay
Caelan (caesay)https://github.com/caesay
on May 15, 2017https://github.com/microsoft/TypeScript/issues/3960#issuecomment-301381447
https://github.com/mohsen1
Mohsen Azimi (mohsen1)https://github.com/mohsen1
on Mar 29, 2018https://github.com/microsoft/TypeScript/issues/3960#issuecomment-377320148
#22415https://github.com/microsoft/TypeScript/pull/22415
https://github.com/gitsupersmecher
SupSm (gitsupersmecher)https://github.com/gitsupersmecher
on Jun 15, 2018https://github.com/microsoft/TypeScript/issues/3960#issuecomment-397537083
http://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-9.htmlhttp://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-9.html
https://github.com/demoran23
demoran (demoran23)https://github.com/demoran23
on Jul 12, 2018https://github.com/microsoft/TypeScript/issues/3960#issuecomment-404509026
devmidaselihttps://github.com/devmidaseli
on Jun 11, 2025https://github.com/microsoft/TypeScript/issues/3960#event-18091185401
Describe use of generic components with JSXhttps://github.com/devmidaseli/typescript-book/commit/abcd744300febc50f7cc4646cd74098678f59516
abcd744https://github.com/devmidaseli/typescript-book/commit/abcd744300febc50f7cc4646cd74098678f59516
angeldev (angeldev99)https://github.com/angeldev99
on Jan 14, 2026https://github.com/microsoft/TypeScript/issues/3960#event-22054429607
Describe use of generic components with JSXhttps://github.com/angeldev99/javascript-book/commit/ca35b4b66a383ec16726eaac85d1eec5aa961482
ca35b4bhttps://github.com/angeldev99/javascript-book/commit/ca35b4b66a383ec16726eaac85d1eec5aa961482
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/3960
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/3960
DiscussionIssues which may not have code impacthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Discussion%22
Domain: JSX/TSXRelates to the JSX parser and emitterhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Domain%3A%20JSX%2FTSX%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.