You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That being said, it will certainly be difficult (and exhausting) to migrate every class component to functions in HAJK. Some class components are very long and contain logic that can be hard to keep track of, lifecycle methods for instance.
An idea is to use AI to some capacity for this. I don't know how, or which AI, but it might make this easier.
The text was updated successfully, but these errors were encountered:
So react is probably going to launch a compiler some time this year (according to some sources). This compiler will render some functions and hooks obsolete (useCallback, useMemo).
The current migration from class component to function component involves memoization via useMemo, like this:
The devs over at react seem to be recommending a migration from class to function components:
There are many pros to this and a pretty good and understandable list can be found here:
https://www.geeksforgeeks.org/why-it-is-recommended-to-use-functional-components-over-class-components/
That being said, it will certainly be difficult (and exhausting) to migrate every class component to functions in HAJK. Some class components are very long and contain logic that can be hard to keep track of, lifecycle methods for instance.
An idea is to use AI to some capacity for this. I don't know how, or which AI, but it might make this easier.
The text was updated successfully, but these errors were encountered: