Open alexbit-codemod opened 1 month ago
@alexbit-codemod the before/after snippets are placeholders. Is that intentional? I cannot find a reference to:
"ComponentSpec and Mixin are now in create-react-class. It might be easiest to fork the deprecated-prop-types-types but with create-react-class instead of prop-types as the target package.
in the migration doc.
i might have made a mistake with the link... @eps1lon has a separate repo and list of missing codemods...ill try to get that later
or maybe you can try to find it yourself
I could find https://github.com/eps1lon/types-react-codemod/issues/361 in @eps1lon's repo but it also doesn't have context about the before/after.
Same as deprecated-prop-types-types
but with ComponentSpec
and Mixin
and create-react-class
instead of prop-types.
on behalf of eps1lon:
"
ComponentSpec
andMixin
are now increate-react-class
. It might be easiest to fork thedeprecated-prop-types-types
but withcreate-react-class
instead ofprop-types
as the target package.Needs real world codebase with usage to test on."
Code before transformation
Code after transformation
Applicability Criteria
Which types-react versions include the deprecated pattern?
Additional context or links
Add any other context about the problem here. This might include extra considerations, edge cases, relevant business logic, existing migration guides, relevant links, etc.