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

cra报错问题记录 #14

Open
i5ting opened this issue Dec 30, 2021 · 3 comments
Open

cra报错问题记录 #14

i5ting opened this issue Dec 30, 2021 · 3 comments

Comments

@i5ting
Copy link
Owner

i5ting commented Dec 30, 2021

ReactDOM.render(
<React.StrictMode>

</React.StrictMode>,
document.getElementById('root')
);

@i5ting
Copy link
Owner Author

i5ting commented Dec 30, 2021

umi外层没有<React.StrictMode>,cra默认用了<React.StrictMode>

@i5ting
Copy link
Owner Author

i5ting commented Dec 30, 2021

React.StrictMode 会导致多次渲染 https://juejin.cn/post/7009189602506309640

@i5ting
Copy link
Owner Author

i5ting commented Jan 13, 2022

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

1 participant