Skip to content

Update to react@18 - #1398

Open
theharryszn wants to merge 4 commits into
carbon-app:mainfrom
theharryszn:main
Open

Update to react@18#1398
theharryszn wants to merge 4 commits into
carbon-app:mainfrom
theharryszn:main

Conversation

@theharryszn

@theharryszn theharryszn commented Jul 23, 2022

Copy link
Copy Markdown
  • Upgraded to react@18
  • Converted Carbon.js to function component to use react@18 hooks
  • Used useDeferedValue instead of debouncing in Carbon.js

Closes #1360
@mfix22

@vercel

vercel Bot commented Jul 23, 2022

Copy link
Copy Markdown

@OpeAbidemi is attempting to deploy a commit to the Carbon Team on Vercel.

A member of the Team first needs to authorize it.

@mfix22 mfix22 left a comment

Copy link
Copy Markdown
Contributor

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?

Comment thread components/Carb.js
@@ -0,0 +1,487 @@
import React, { useMemo, useState, useDeferredValue } from 'react'

Copy link
Copy Markdown
Contributor

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?

Comment thread components/Carbon.js

class Carbon extends React.PureComponent {
static defaultProps = {
const Carbon = (

Copy link
Copy Markdown
Contributor

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?

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

Successfully merging this pull request may close these issues.

Update to react@18

2 participants