Skip to content

Support for string targets for isomorphic createPortal #10711

@thysultan

Description

@thysultan

This is a proposal for the createPortal API to in addition to Nodes support strings for the second argument(container), which could pave a declarative way to achieve out of order server side rendering.

#createPortal(..., container: Node|String, ...)

The server could render a portals children in-place and have the client-side hydration process move it to the right location client-side using document.querySelector if the container is a string.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions