René's URL Explorer Experiment


Title: Decouple jsx element type from jsx factory return type and sfc return type · Issue #21699 · microsoft/TypeScript · GitHub

Open Graph Title: Decouple jsx element type from jsx factory return type and sfc return type · Issue #21699 · microsoft/TypeScript

X Title: Decouple jsx element type from jsx factory return type and sfc return type · Issue #21699 · microsoft/TypeScript

Description: We need to look up the type of a jsx expression by actually resolving the jsx factory call, so that we don't create a reference to the global JSX.Element type, which can change shape between react versions (as it needs to in the react 16...

Open Graph Description: We need to look up the type of a jsx expression by actually resolving the jsx factory call, so that we don't create a reference to the global JSX.Element type, which can change shape between react ...

X Description: We need to look up the type of a jsx expression by actually resolving the jsx factory call, so that we don't create a reference to the global JSX.Element type, which can change shape between re...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Decouple jsx element type from jsx factory return type and sfc return type","articleBody":"We need to look up the type of a jsx expression by actually resolving the jsx factory call, so that we don't create a reference to the global `JSX.Element` type, which can change shape between react versions (as it needs to in the react 16 upgrade). We also need to resolve the sfc return type and class element type from the parameters of the factory function overloads for the same reasons, doubly so because the types allowable as `render` method and `SFC` return values are no longer the same as `JSX.Element` (namely, they can be strings, arrays, portals, etc). \r\n\r\nThis _might_ be considered a breaking change, because some consumers may expect `JSX.Element` to always be a supertype of both jsx element expression return types and SFC return types (even though this isn't true in react 16) - we certainly made that assumption internally, hence the need for the change. 🐱 ","author":{"url":"https://github.com/weswigham","@type":"Person","name":"weswigham"},"datePublished":"2018-02-06T21:34:04Z","url":"https://github.com/microsoft/TypeScript/issues/21699"}

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:0e43c414-fe5b-04f6-becf-8b91b5385488
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE400:DB09F:C7E5A2:1000C59:6B0101F8
html-safe-nonce1e9ecb0c6be43e0f2eb3994c0d3a9db4bc86d16b4bb533fa40eac3a32e81f076
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNDAwOkRCMDlGOkM3RTVBMjoxMDAwQzU5OjZCMDEwMUY4IiwidmlzaXRvcl9pZCI6IjY2MzkzOTk2NjQ3NDU1MTM0NjQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac23ae9e4bbb6fdd7d394fe6e7a76e3c74ccaaea68b2521add3c535f7dd6895322
hovercard-subject-tagissue:294920456
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/21699/issue_layout
twitter:imagehttps://opengraph.githubassets.com/660ec74d696354dbac5d9dd5e9069cbe1ee26a6542c061de7f16544aa52c6a0c/microsoft/TypeScript/issues/21699
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/660ec74d696354dbac5d9dd5e9069cbe1ee26a6542c061de7f16544aa52c6a0c/microsoft/TypeScript/issues/21699
og:image:altWe need to look up the type of a jsx expression by actually resolving the jsx factory call, so that we don't create a reference to the global JSX.Element type, which can change shape between react ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameweswigham
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/21699#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F21699
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%2F21699
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/21699
Reloadhttps://github.com/microsoft/TypeScript/issues/21699
Reloadhttps://github.com/microsoft/TypeScript/issues/21699
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/21699
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/21699
#51328https://github.com/microsoft/TypeScript/pull/51328
Decouple jsx element type from jsx factory return type and sfc return typehttps://github.com/microsoft/TypeScript/issues/21699#top
#51328https://github.com/microsoft/TypeScript/pull/51328
Breaking ChangeWould introduce errors in existing codehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Breaking%20Change%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
Effort: ModerateRequires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Effort%3A%20Moderate%22
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
Backloghttps://github.com/microsoft/TypeScript/milestone/29
https://github.com/weswigham
Wesley Wigham (weswigham)https://github.com/weswigham
on Feb 6, 2018https://github.com/microsoft/TypeScript/issues/21699#issue-294920456
Nexthttps://github.com/microsoft/TypeScript/issues/21699?timeline_page=1
Wesley Wigham (weswigham)https://github.com/weswigham
Breaking ChangeWould introduce errors in existing codehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Breaking%20Change%22
Effort: ModerateRequires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Effort%3A%20Moderate%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
on Feb 6, 2018https://github.com/microsoft/TypeScript/issues/21699#event-1461096260
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
TypeScript 2.8https://github.com/microsoft/TypeScript/milestone/61
on Feb 6, 2018https://github.com/microsoft/TypeScript/issues/21699#event-1461102693
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
Wesley Wigham (weswigham)https://github.com/weswigham
on Feb 6, 2018https://github.com/microsoft/TypeScript/issues/21699#event-1461102829
https://github.com/aaronjensen
Aaron Jensen (aaronjensen)https://github.com/aaronjensen
on Feb 14, 2018https://github.com/microsoft/TypeScript/issues/21699#issuecomment-365475881
Wesley Wigham (@weswigham)https://github.com/weswigham
#18357https://github.com/microsoft/TypeScript/issues/18357
https://github.com/jchitel
Jake Chitel (jchitel)https://github.com/jchitel
on Feb 14, 2018https://github.com/microsoft/TypeScript/issues/21699#issuecomment-365735295
#18357https://github.com/microsoft/TypeScript/issues/18357
https://github.com/ericanderson
Eric Anderson (ericanderson)https://github.com/ericanderson
on Feb 21, 2018https://github.com/microsoft/TypeScript/issues/21699#issuecomment-367319306
Jake Chitel (@jchitel)https://github.com/jchitel
https://github.com/ericanderson
Eric Anderson (ericanderson)https://github.com/ericanderson
on Feb 22, 2018https://github.com/microsoft/TypeScript/issues/21699#issuecomment-367536785
Wesley Wigham (@weswigham)https://github.com/weswigham
https://github.com/weswigham
Wesley Wigham (weswigham)https://github.com/weswigham
on Feb 22, 2018https://github.com/microsoft/TypeScript/issues/21699#issuecomment-367537260
Eric Anderson (@ericanderson)https://github.com/ericanderson
https://github.com/ericanderson
Eric Anderson (ericanderson)https://github.com/ericanderson
on Feb 22, 2018https://github.com/microsoft/TypeScript/issues/21699#issuecomment-367537632
Wesley Wigham (@weswigham)https://github.com/weswigham
https://github.com/weswigham
Wesley Wigham (weswigham)https://github.com/weswigham
on Feb 22, 2018https://github.com/microsoft/TypeScript/issues/21699#issuecomment-367538043
Eric Anderson (@ericanderson)https://github.com/ericanderson
https://github.com/ericanderson
Eric Anderson (ericanderson)https://github.com/ericanderson
on Feb 22, 2018https://github.com/microsoft/TypeScript/issues/21699#issuecomment-367538176
https://github.com/weswigham
Wesley Wigham (weswigham)https://github.com/weswigham
on Feb 22, 2018https://github.com/microsoft/TypeScript/issues/21699#issuecomment-367538336
https://github.com/ericanderson
Eric Anderson (ericanderson)https://github.com/ericanderson
on Feb 22, 2018https://github.com/microsoft/TypeScript/issues/21699#issuecomment-367539176
https://github.com/dead-claudia
Claudia Meadows (dead-claudia)https://github.com/dead-claudia
on Aug 30, 2024https://github.com/microsoft/TypeScript/issues/21699#issuecomment-2321959655
https://github.com/sdegutis
sdegutishttps://github.com/sdegutis
on Aug 30, 2024https://github.com/microsoft/TypeScript/issues/21699#issuecomment-2321996302
proposal to standardize JSXhttps://vanillajsx.com/proposal/
https://github.com/dead-claudia
Claudia Meadows (dead-claudia)https://github.com/dead-claudia
on Aug 31, 2024https://github.com/microsoft/TypeScript/issues/21699#issuecomment-2322785562
sdegutishttps://github.com/sdegutis
https://es.discourse.group/https://es.discourse.group/
https://github.com/nhh
Niklas (nhh)https://github.com/nhh
on Sep 4, 2024https://github.com/microsoft/TypeScript/issues/21699#issuecomment-2329887149
dojo/framework#43https://github.com/dojo/framework/issues/43
https://www.typescriptlang.org/docs/handbook/jsx.html#the-jsx-result-typehttps://www.typescriptlang.org/docs/handbook/jsx.html#the-jsx-result-type
https://github.com/yohan-pg
Yohan Poirier-Ginter (yohan-pg)https://github.com/yohan-pg
on Sep 14, 2024https://github.com/microsoft/TypeScript/issues/21699#issuecomment-2351053833
reverofevilhttps://github.com/reverofevil
Sufian Rhazi (sufianrhazi)https://github.com/sufianrhazi
on Apr 26, 2025https://github.com/microsoft/TypeScript/issues/21699#event-17417772230
BREAKING: fix typechecking for async componentshttps://github.com/sufianrhazi/gooey/commit/cf8a09a4f0741fd9fd810972ce276f77a0111949
cf8a09ahttps://github.com/sufianrhazi/gooey/commit/cf8a09a4f0741fd9fd810972ce276f77a0111949
https://github.com/FrameMuse
Valery Zinchenko (FrameMuse)https://github.com/FrameMuse
on May 13, 2025https://github.com/microsoft/TypeScript/issues/21699#issuecomment-2877233537
https://github.com/sdegutis
sdegutishttps://github.com/sdegutis
on May 14, 2025https://github.com/microsoft/TypeScript/issues/21699#issuecomment-2878537204
https://github.com/FrameMuse
Valery Zinchenko (FrameMuse)https://github.com/FrameMuse
on May 14, 2025https://github.com/microsoft/TypeScript/issues/21699#issuecomment-2879253281
https://github.com/oprypin
Oleh Prypin (oprypin)https://github.com/oprypin
on Nov 27, 2025https://github.com/microsoft/TypeScript/issues/21699#issuecomment-3587246095
https://github.com/dead-claudia
Claudia Meadows (dead-claudia)https://github.com/dead-claudia
on Nov 28, 2025https://github.com/microsoft/TypeScript/issues/21699#issuecomment-3588406026
Oleh Prypin (@oprypin)https://github.com/oprypin
#21699 (comment)https://github.com/microsoft/TypeScript/issues/21699#issuecomment-1289516498
#29818https://github.com/microsoft/TypeScript/pull/29818
https://github.com/nicolo-ribaudo
Nicolò Ribaudo (nicolo-ribaudo)https://github.com/nicolo-ribaudo
on Dec 6, 2025https://github.com/microsoft/TypeScript/issues/21699#issuecomment-3620176902
#29818https://github.com/microsoft/TypeScript/pull/29818
https://github.com/koteelok
Musa Asukhanov (koteelok)https://github.com/koteelok
on Dec 11, 2025https://github.com/microsoft/TypeScript/issues/21699#issuecomment-3639690655
Nicolò Ribaudo (@nicolo-ribaudo)https://github.com/nicolo-ribaudo
expandable hovershttps://www.typescriptlang.org/docs/handbook/release-notes/typescript-5-9.html#expandable-hovers-preview
https://github.com/dead-claudia
Claudia Meadows (dead-claudia)https://github.com/dead-claudia
on Dec 11, 2025https://github.com/microsoft/TypeScript/issues/21699#issuecomment-3640108404
#29818https://github.com/microsoft/TypeScript/pull/29818
#29818 (comment)https://github.com/microsoft/TypeScript/pull/29818#issuecomment-549135823
Jake Bailey (jakebailey)https://github.com/jakebailey
Fix AvailableA PR has been opened for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fix%20Available%22
on Aug 20, 2026https://github.com/microsoft/TypeScript/issues/21699#event-29770215170
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/21699
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/21699
Breaking ChangeWould introduce errors in existing codehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Breaking%20Change%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
Effort: ModerateRequires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Effort%3A%20Moderate%22
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
BacklogNo due datehttps://github.com/microsoft/TypeScript/milestone/29
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.