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 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