[codemod request] types-react: remove deprecated ReactHTML and ReactSVG
on behalf of eps1lon:
" ReactHMTL and ReactSVG were related to createFactories but we found usage using it as a list of possible built-in browser element types.
We now have HTMLElementType and SVGElementType which can be used instead of keyof ReactHTML and keyof ReactSVG respectively.
Needs real world codebase with usage to test on."
Note: The example section helps codemod contributors identify all the transformation patterns that this codemod should handle. Repeat before/after snippets for every transformation example you can find.
Code before transformation
//insert your code before transformation here
Code after transformation
//insert the expected **correct** output here
Applicability Criteria
Which types-react versions include the deprecated pattern?
Additional context or links
@alexbit-codemod the current react-beta guide doesn't have a mention of this? "ReactHMTL and ReactSVG were related to createFactories but we found usage using it as a list of possible built-in browser element types."
Okay we tried again and got this codemod. It fixed the import statement, but the tag is not fixed.