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

React codemod scripts

Results 50 react-codemod issues
Sort by recently updated
recently updated
newest added

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: ![image](https://user-images.githubusercontent.com/6134547/96072765-90800a80-0ed7-11eb-86a2-f9285b39dae3.png)

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...

bug

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): ![image](https://user-images.githubusercontent.com/887639/99828988-b11c2f80-2b29-11eb-92b6-9c11d626961e.png)...

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...

help wanted