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
Like the built-in "extract to function" refactor, I propose an "extract to component" refactor:
Select some jsx elements
Invoke the "extract to component" refactor
It automatically analyzes dependencies of selected code, generates a new component with these props, and replaces selection with an element of the newly created component type.
It may have some variants:
Extract to component in same module
Extract to component in a new file
Multiples by:
Extract to functional component
Extract to functional component wrapped with React.memo
Extract to class component (maybe not needed as class component is not mainstream anymore)
The text was updated successfully, but these errors were encountered:
Like the built-in "extract to function" refactor, I propose an "extract to component" refactor:
It may have some variants:
Multiples by:
React.memo
The text was updated successfully, but these errors were encountered: