Skip to content

Conversation

@agubler
Copy link
Member

@agubler agubler commented Jul 16, 2019

Type: feature

The following has been addressed in the PR:

Description:

Adds support for a special vnode tag, body that will render its children directly to the document.body.

import { create, tsx } from '@dojo/framework/core/vdom';

const factory = create();

const MyWidget = factory(function MyWidget() {
    return (
        <div>
            <body><div>Body Node</div></body>
            <div>Normal Node</div>
        </div>
    );
});

Resolves #447

Copy link
Member

@tomdye tomdye left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add ability to render DNodes to the document body

2 participants