create-element-to-jsx could not be recognized
Hi,
Running this command
codemod react/create-element-to-jsx --target ./src
I get this error:
The specified command or codemod name could not be recognized. ...
I searched the create-element-to-jsx in the codemod registry and didn't find anything. Is it removed? Will it be back?
Thank you.
@Rahmanism thanks for reporting this! @amirabbas-gh can you take a look?
thanks for reporting this issue @Rahmanism. i published the codemod to the registry and you can run it via:
npx codemod@latest react/create-element-to-jsx
also link to the registry: https://codemod.com/registry/react-create-element-to-jsx
this issue can be closed. cc @rickhanlonii
Big thanks to @amirabbas-gh for adding more test cases, docs, and metadata to this codemod! I'm coordinating with @rickhanlonii to bring such contributions into this repo. In the meantime, here’s the source and extra test fixtures Amirabbas worked on: GitHub Link.