-
Notifications
You must be signed in to change notification settings - Fork 20
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
[Task] Update to React 18 #482
Comments
I will start this after #478 is merged because of this comment on https://github.com/gndelia/codemod-replace-react-fc-typescript#codemod-replace-react-fc-typescript
|
Reading this again after the recent merge and it seems like there's not really a need to refactor React.FC anymore since the implicit children problem is solved in React 18 https://reactjs.org/blog/2022/03/08/react-18-upgrade-guide.html#updates-to-typescript-definitions. Is there any push back from changing this issue to updating cryostat-web from React 17.0.2 to React 18.*? |
No, that sounds good, though it sounds like the upgrade may not be totally seamless judging by those release upgrade notes. We'll need to go through things carefully and make sure the changes don't cause any odd bugs. We're pretty close to the code freeze date for 2.2 release so this would need to be done quite soon to have any chance of making it in to the release. |
Maybe I will do a refactor in the future (the docs you linked has something for that anyways), but for now I think it may be best to stop using React.FC in
-web
in the future and stick with the usualso that everything is using the same and preferred style.
I'll open an issue for it, if that's okay with you anyways. This isn't a big deal by any means ^^. I'm not sure what is the best way to let everyone know though, haha.
Originally posted by @maxcao13 in #481 (comment)
The text was updated successfully, but these errors were encountered: