Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use ReactDOM.render target as an implicit JSX root #7932

Closed
quantizor opened this issue Oct 10, 2016 · 1 comment
Closed

Use ReactDOM.render target as an implicit JSX root #7932

quantizor opened this issue Oct 10, 2016 · 1 comment

Comments

@quantizor
Copy link
Contributor

So currently when rendering, you must provide some top-most wrapper in addition to the node that has been designated as the reactroot. This introduces an unwanted extra layout element and can make styling a little irritating.

It would be nice if the target for ReactDOM.render(jsx, node) is the topmost node and you could pass an array as the first children right away.

@gaearon
Copy link
Collaborator

gaearon commented Oct 27, 2016

This already works in Fiber (#6170). We will not backport it to the existing reconciler.
Fiber is not ready yet but we hope to ship it next year.

@gaearon gaearon closed this as completed Oct 27, 2016
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

No branches or pull requests

2 participants