Skip to content

How do we replace an element with DOM instead of inserting a DOM into an element when hydrating? #16609

@lightnet328

Description

@lightnet328

I think we have the following issue.

https://stackoverflow.com/questions/55611192/reactdom-hydrate-replace-container-instead-of-inserting-into

In preact, a new feature was added to solve this issue.

preactjs/preact#1557

It would be useful for partial server-side rendering if we can do this. Can we replace an element with DOM instead of inserting a DOM into an element when hydrating? Or, do you have any plans to implement new features to solve this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions