You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function First() => <h1>second</h1>
const element = <First/>
console.log(JSON.stringify(element, null, 2)) // type field is missing
however, if you change to lowercase component name, then it all works as expected
const element = <first/>
console.log(element.type) // first
i understand, this might be expected behavior due to difference, where in second case is handled as a native tag. but then I'm still confused, how do I properly define my named components with children, without defining my own runtime/jsx ?
What is the expected behavior?
No response
What do you see instead?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered:
What version of Bun is running?
1.1.33
What platform is your computer?
macos
What steps can reproduce the bug?
however, if you change to lowercase component name, then it all works as expected
i understand, this might be expected behavior due to difference, where in second case is handled as a native tag. but then I'm still confused, how do I properly define my named components with children, without defining my own runtime/jsx ?
What is the expected behavior?
No response
What do you see instead?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: