Title: TSX rejects custom elements · Issue #4648 · microsoft/TypeScript · GitHub
Open Graph Title: TSX rejects custom elements · Issue #4648 · microsoft/TypeScript
X Title: TSX rejects custom elements · Issue #4648 · microsoft/TypeScript
Description: return
Open Graph Description: return
X Description: return <my-custom-element />; Results in error: Property 'my-custom-element' does not exist on type 'JSX.IntrinsicElements'. As far as I'm aware, this ought to be valid JS...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/4648
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"TSX rejects custom elements","articleBody":"``` jsx\nreturn \u003cmy-custom-element />;\n```\n\nResults in error: `Property 'my-custom-element' does not exist on type 'JSX.IntrinsicElements'`. As far as I'm aware, this ought to be valid JSX and so compile to:\n\n``` js\nReact.createElement(\"my-custom-element\").\n```\n\nI can get around this by using the second form, but it'd be nice to avoid the check for standard elements (unless it's there for a good reason?)\n","author":{"url":"https://github.com/jamiewinder","@type":"Person","name":"jamiewinder"},"datePublished":"2015-09-04T19:46:30Z","url":"https://github.com/microsoft/TypeScript/issues/4648"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:abebfa94-de92-01d4-be0e-79eda2c97b81 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CA14:96DDF:33BBE5E:41A491F:6B01D106 |
| html-safe-nonce | e577bd92b05f3103b54a6334779a326fab0677514f557a59ebc4164533b7c1e4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQTE0Ojk2RERGOjMzQkJFNUU6NDFBNDkxRjo2QjAxRDEwNiIsInZpc2l0b3JfaWQiOiIyNDkyNzg3MjM5Mjk4Mzg4MjMwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 8b82f1814130f830b89d2007668547d5e283d8fabe20afb6a531926a97a17e80 |
| hovercard-subject-tag | issue:104958173 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/4648/issue_layout |
| twitter:image | https://opengraph.githubassets.com/32e7e95afdd27c5e4fc9759b3ba70a03e07ce3dcc62deff15346ad6bffb5d771/microsoft/TypeScript/issues/4648 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/32e7e95afdd27c5e4fc9759b3ba70a03e07ce3dcc62deff15346ad6bffb5d771/microsoft/TypeScript/issues/4648 |
| og:image:alt | return |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jamiewinder |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 20929025 |
| octolytics-dimension-repository_nwo | microsoft/TypeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20929025 |
| octolytics-dimension-repository_network_root_nwo | microsoft/TypeScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width