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

ReactDOM.render render to body without warning #6616

Closed
jonlepage opened this issue Feb 7, 2024 · 1 comment
Closed

ReactDOM.render render to body without warning #6616

jonlepage opened this issue Feb 7, 2024 · 1 comment

Comments

@jonlepage
Copy link

jonlepage commented Feb 7, 2024

Summary

how i can disable this error for nwjs or electron app ! thanks
it should be a warn log and not a error, this trigger breakpoint everytime !

Warning: createRoot(): Creating roots directly with document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try using a container element created for your app.

Page

https://github.com/reactjs

Details

how i can disable this warn for nwjs or electron app ! thanks
Warning: createRoot(): Creating roots directly with document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try using a container element created for your app.

@pwbriggs
Copy link

pwbriggs commented Feb 7, 2024

Hey there @djmisterjon! 👋

Unfortunately, this issue tracker is for reproducible bugs in the React library itself, not for help with fixing a bug in your app. If you're looking for support, a good place to ask would be Stack Overflow (see the "Community" page on react.dev). Try searching the existing questions related to React, and if you can't find anything helpful, ask your own.

Just a heads up, the people over at Stack Overflow will want you to provide a minimal, reproducible example showing your error.

No, this is a bug in React!

Sorry, I must have misunderstood your issue report.

If you're reporting a bug in React, head over to the React repo (facebook/react) and open an issue there instead. This repository, reactjs/react.dev, is the repo for the react.dev official documentation website.

Note that you'll need to write a minimal, reproducible example for that repo's issue tracker, too.

Hope this helps! 😄

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

No branches or pull requests

2 participants