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
In my React code, every component is wrapped with React.memo, so that would help. Another common heuristic is "any function that has JSX in it"; eslint react rules tend to use that, though it's not always accurate.
I don't know how codemods are normally structured, but you could imagine it being interactive, asking some questions like "which of these functions are components?".
Input code
Expected Output
Additional context
Related work on the Babel front:
The text was updated successfully, but these errors were encountered: