Cannot use components as JSX root elements? #12837
Unanswered
ettersi
asked this question in
Help/Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This doesn't work as intended:
After the two-seconds timeout, I see the
Loading SomeOtherComponent
log appear in the console, but it looks like the content ofJsx
isn't updated. The example works fine if I replace the components with native elements or if I wrap them with e.g. a<div>...</div>
. This seems to suggest that there is some issue with root-level components in JSX. Is this a known issue or maybe even deliberately unsupported?Playground
Beta Was this translation helpful? Give feedback.
All reactions