react-codemod icon indicating copy to clipboard operation
react-codemod copied to clipboard

create-element-to-jsx could not be recognized

Open Rahmanism opened this issue 1 year ago • 3 comments

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 avatar Dec 09 '24 12:12 Rahmanism

@Rahmanism thanks for reporting this! @amirabbas-gh can you take a look?

mohab-sameh avatar Dec 17 '24 15:12 mohab-sameh

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

alexbit-codemod avatar Dec 18 '24 16:12 alexbit-codemod

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.

alexbit-codemod avatar Dec 18 '24 16:12 alexbit-codemod