Title: Error on Inner component passed by prop · Issue #5 · nullstack/swc-plugin-nullstack · GitHub
Open Graph Title: Error on Inner component passed by prop · Issue #5 · nullstack/swc-plugin-nullstack
X Title: Error on Inner component passed by prop · Issue #5 · nullstack/swc-plugin-nullstack
Description: When we pass a component by prop, is throwed an error saing: Componen not defined: Ex: class ExternalComponent { render({test}) { return
Open Graph Description: When we pass a component by prop, is throwed an error saing: Componen not defined: Ex: class ExternalComponent { render({test}) { return
X Description: When we pass a component by prop, is throwed an error saing: Componen not defined: Ex: class ExternalComponent { render({test}) { return <div>{test}</div>; } } class Component { renderI...
Opengraph URL: https://github.com/nullstack/swc-plugin-nullstack/issues/5
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Error on Inner component passed by prop","articleBody":"When we pass a component by prop, is throwed an error saing: Componen not defined:\r\n\r\nEx: \r\n```jsx\r\n class ExternalComponent {\r\n render({test}) {\r\n return \u003cdiv\u003e{test}\u003c/div\u003e;\r\n }\r\n }\r\n class Component {\r\n renderInnerComponent() {\r\n return \u003cspan /\u003e;\r\n }\r\n renderAnotherInnerComponent() {\r\n return \u003cInnerComponent /\u003e;\r\n }\r\n\r\n render() {\r\n return \u003cExternalComponent tt=\"here\" test={\u003cAnotherInnerComponent /\u003e} /\u003e;\r\n }\r\n }\r\n```\r\n\r\nShould be parsed to:\r\n```jsx\r\nclass ExternalComponent {\r\n render({test}) {\r\n return \u003cdiv\u003e{test}\u003c/div\u003e;\r\n }\r\n }\r\n class Component {\r\n renderInnerComponent() {\r\n return \u003cspan /\u003e;\r\n }\r\n renderAnotherInnerComponent() {\r\n const InnerComponent = this.renderInnerComponent;\r\n return \u003cInnerComponent /\u003e;\r\n }\r\n\r\n render() {\r\n const AnotherInnerComponent = this.renderAnotherInnerComponent;\r\n return \u003cExternalComponent tt=\"here\" test={\u003cAnotherInnerComponent/\u003e} /\u003e;\r\n }\r\n }\r\n```","author":{"url":"https://github.com/acneidert","@type":"Person","name":"acneidert"},"datePublished":"2023-07-07T20:57:01.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/5/swc-plugin-nullstack/issues/5"}
| 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:59ae6c1a-e07b-0608-4652-befc83ade451 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 92F8:2C2AD:2049E9:2A386A:698E6B15 |
| html-safe-nonce | 2d7fec97f8467971151a4022e2710cf1fc6127258d8a57ecade9336029389a97 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MkY4OjJDMkFEOjIwNDlFOToyQTM4NkE6Njk4RTZCMTUiLCJ2aXNpdG9yX2lkIjoiNTM1MTQyOTcxMjQyNDg4OTEwOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1d2720279986f9bff4d40670e282b7f2fbb9bc5b5745b069f3d2277558ed59d7 |
| hovercard-subject-tag | issue:1794318397 |
| 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/nullstack/swc-plugin-nullstack/5/issue_layout |
| twitter:image | https://opengraph.githubassets.com/01abf0b02757c430ec3742b97081f96cff97c874fbf177af53475f046e735fc4/nullstack/swc-plugin-nullstack/issues/5 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/01abf0b02757c430ec3742b97081f96cff97c874fbf177af53475f046e735fc4/nullstack/swc-plugin-nullstack/issues/5 |
| og:image:alt | When we pass a component by prop, is throwed an error saing: Componen not defined: Ex: class ExternalComponent { render({test}) { return {test} ; } } class Component { renderInnerComponen... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | acneidert |
| hostname | github.com |
| expected-hostname | github.com |
| None | 666e30cc1de8ebdf458084bf731e95deba4f074a5008f91b50803aa9a71e3725 |
| turbo-cache-control | no-preview |
| go-import | github.com/nullstack/swc-plugin-nullstack git https://github.com/nullstack/swc-plugin-nullstack.git |
| octolytics-dimension-user_id | 63256628 |
| octolytics-dimension-user_login | nullstack |
| octolytics-dimension-repository_id | 602341428 |
| octolytics-dimension-repository_nwo | nullstack/swc-plugin-nullstack |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 602341428 |
| octolytics-dimension-repository_network_root_nwo | nullstack/swc-plugin-nullstack |
| 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 | c5daa44975c44e187dd9ea0d761c37973489d508 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width