-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Update to react@18 #1398
base: main
Are you sure you want to change the base?
Update to react@18 #1398
Conversation
@OpeAbidemi is attempting to deploy a commit to the Carbon Team on Vercel. A member of the Team first needs to authorize it. |
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.
Thanks @OpeAbidemi! Just a few questions here and above
Did you confirm that automatic bracket ({}, (), [], …) completion still works correctly?
@@ -0,0 +1,487 @@ | |||
import React, { useMemo, useState, useDeferredValue } from 'react' |
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.
@OpeAbidemi what is this extra file being used for?
@@ -49,14 +46,16 @@ function getUnderline(underline) { | |||
return 'initial' | |||
} | |||
|
|||
class Carbon extends React.PureComponent { | |||
static defaultProps = { | |||
const Carbon = ( |
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.
Why does this component need to get converted to a functional component? If it isn't strictly required for upgrading to React@18, can we do these changes in a separate PR?
Closes #1360
@mfix22