experimentalReactChildren breaks self-closing tags #8432
Labels
- P3: minor bug
An edge case that only affects very specific usage (priority)
pkg: react
Related to React (scope)
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
When using
experimentalReactChildren
, self closing tags break. If you use any void tag (such ashr
orinput
) inside of a react component, you get the error:What's the expected result?
Self closing tags should be preserved
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-42py6u?file=src%2Fpages%2Findex.astro
(refresh the page to see the actual correct error)
Participation
The text was updated successfully, but these errors were encountered: