-
Notifications
You must be signed in to change notification settings - Fork 45.7k
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
refactor(react-jsx): solve some code smell #21826
Conversation
It seems that Circleci has a problem, I am trying to restart Check |
Comparing: 241485a...3dd171a Critical size changesIncludes critical production bundles, as well as any change greater than 2%:
Significant size changesIncludes any change greater than 0.2%: (No significant changes) |
1. reduce `getComponentNameFromType` call 2. reduce `let` use
1a5c2f8
to
3dd171a
Compare
It seems that Circleci has a problem🤣 |
let didWarnAboutStringRefs; | ||
let specialPropKeyWarningShown, | ||
specialPropRefWarningShown, | ||
didWarnAboutStringRefs; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change seems purely subjective. Some may prefer one way, others another. We usually don't merge subjective changes to the code. 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
get, thank you for your reply.
I am sorry to bother your time, my intention just wants the React code better.🤣
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No worries. It's okay!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hahaha, But another change I hope that can make changes in subsequent, because it does make a function call without necessary.
i will close |
Summary
When I learn the react source, I found some small errors that don't affect code execution.
Refactor some
react/jsx
ReactJSXElement.js
codeTest Plan
just refactor, and I have passed the local test