Skip to content

hydrating the React commponent in .astro file error #14503

@dande-sun

Description

@dande-sun

Astro Info

Astro                    v5.14.1
Node                     v20.19.1
System                   Linux (x64)
Package Manager          unknown
Output                   static
Adapter                  none
Integrations             @astrojs/react

If this issue only occurs in one browser, which browser is a problem?

No response

Describe the Bug

hydrating the React commponent in .astro file, when the children is a text and the {children} have sibling tags, the children will disappear.

What's the expected result?

Hope to fix them.

Link to Minimal Reproducible Example

https://stackblitz.com/edit/github-1rrqn3xu?file=src%2Fcomponents%2FTest.tsx

Participation

  • I am willing to submit a pull request for this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs triageIssue needs to be triagedpkg: reactRelated to React (scope)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions