react-codemod
react-codemod copied to clipboard
React codemod scripts
I have working code to make the render prop expression as a child component. Please let me know if this transformer code would be useful to add to the react-codemod...
I'm raising this issue for awareness rather than an ask to fix as I spent some time trying to but found issues in recast which need resolving first. ### The...
Run : ` npx react-codemod update-react-imports` It report: 
I run command `npx react-codemod rename-unsafe-lifecycles src` and got this error: ``` Error: Cannot find module 'core-js/modules/es.array.find' Require stack: - /Users/minhtran/.npm/_npx/24243/lib/node_modules/react-codemod/transforms/rename-unsafe-lifecycles.js - /Users/minhtran/.npm/_npx/24243/lib/node_modules/react-codemod/node_modules/jscodeshift/src/Worker.js at Function.Module._resolveFilename (internal/modules/cjs/loader.js:794:15) at Function.Module._load (internal/modules/cjs/loader.js:687:27) at...
When I run the following command, and select TypeScript, it finds 124 files but skips them all. ```bash $ npx react-codemod create-element-to-jsx src ``` Here is a screenshot (abbreviated): ...
On running `npx react-codemod update-react-imports` got the following error: ``` npm ERR! cb.apply is not a function npm ERR! A complete log of this run can be found in: npm...
I recently started update-react-imports and it works as expected but re-wrote the line endings from LF to CRLF, probably because I'm on Windows but would expect that it doesn't change...
The cli experience of react-codemod is quite nice, and has made running codemods on react codebases very pleasant/accessible. Occasionally this repo will get a request to add a new type...
Just like https://github.com/reactjs/react-codemod/blob/master/transforms/manual-bind-to-arrow.js file has comment on top to show what will be the impact of transformation by before and after codes, can we please update other JS files with...