-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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
chore: Upgrade to React 17 #31961
base: master
Are you sure you want to change the base?
chore: Upgrade to React 17 #31961
Conversation
Korbit doesn't automatically review large (500+ lines changed) pull requests such as this one. If you want me to review anyway, use |
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.
🚀 ! A few quick comments
"react": "^15 || ^16" | ||
"react": "^16 || ^17" |
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.
Here and elsewhere, could we just remove support for ^16
? As we're doing breaking changes, let's not be shy with the sledgehammer! 😁
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.
🛠️
@@ -23,7 +23,7 @@ import 'abortcontroller-polyfill/dist/abortcontroller-polyfill-only'; | |||
import 'jest-enzyme'; | |||
import jQuery from 'jquery'; | |||
import { configure } from 'enzyme'; | |||
import Adapter from 'enzyme-adapter-react-16'; | |||
import Adapter from '@wojtekmaj/enzyme-adapter-react-17'; |
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.
I see this is an "unofficial" package - am I reading this correctly that Enzyme doesn't support React > 16 natively?
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.
Yep, that package is suggested as a substitute by chatgpt/stackoverflow. Hopefully though we can get rid of enzyme tests soon
@@ -415,7 +415,7 @@ export default class CRUDCollection extends PureComponent< | |||
)), | |||
); | |||
if (allowAddItem) { | |||
tds.push(<td key="add" />); | |||
tds.push(<td key="add" aria-label="dd" />); |
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.
Was this supposed to be aria-label="Add"
?
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.
Oops, typo!
SUMMARY
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION