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

React.StrictMode wrapping in index.js #9843

Closed
trueaniki opened this issue Oct 20, 2020 · 3 comments
Closed

React.StrictMode wrapping in index.js #9843

trueaniki opened this issue Oct 20, 2020 · 3 comments

Comments

@trueaniki
Copy link

React.StrictMode wrapping in index.js causes double rendering of App component. With <React.StrictMode></React.StrictMode>
App component always renders and rerenders twice

@trueaniki
Copy link
Author

Screenshot_16
Screenshot_15

@Andarist
Copy link
Contributor

This is expected - it's one of the things that React.StrictMode enables. It's supposed to surface problems in your code with impure renders.

@stale
Copy link

stale bot commented Dec 25, 2020

This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs.

@stale stale bot added the stale label Dec 25, 2020
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