Skip to content

Should "container" returned from render reference the document body? #392

Closed
@alexkrolick

Description

@alexkrolick

The current render behavior returns the root div that the ReactDOM.render() call uses (unless certain options are passed). This makes it hard to test dialogs, modals, tooltips, etc. - you have to use within or use imported DTL queries with a custom node argument to grab the elements. I wonder if this behavior is creating more indirection than is warranted - everyone should be cleaning up the DOM between tests so returning isolated nodes doesn't really prevent any problems.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions