Skip to content

Components with children without DOM representation #2191

Closed
@freiksenet

Description

@freiksenet

If I need a component that doesn't have a DOM representation, I can use render function that returns <noscript>. However recently I had to have a component without DOM representation, but that also has children, that I want to be mounted (so that their lifecycle methods trigger correctly). Unfortunately <noscript> is not nestable, thus I had to return <span>, which is not an ideal solution.

Is there a way to do such thing without using <span> or <div>? I know there are plans to replace <noscript> solution with some 'null component'. Are there plans for 'null component' that can mount its children?

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