reactjs/react-codemod
View on GitHub ↗ ★ 4,406 JavaScript
React codemod scripts
12 mentions on Hacker News by 8 people: 0 stories, 12 comments · first 2016-02-27 · latest 2022-03-29
20082026
-
If you'd like to migrate them, the React team maintains some awesome codemods: https://github.com/reactjs/react-codemod
comment by goodoldneon · 2022-03-29 · in React v18.0 -
…oft.com/cppblog/exploring-clang-tooli... ). Within the JavaScript ecosystem this is quite popular (1. https://github.com/reactjs/react-codemod ; 2. https://github.com/mui-org/material-ui/tree/HEAD/packages/ma... ; 3.…
comment by lhnz · 2021-05-17 · in Modern Javascript: Everything you missed over the last 10 years (2020) -
…provided automatic scripts that convert your code as much of your code as possible automatically: https://github.com/reactjs/react-codemod . We also call attention to the automated migration scripts in all major release blog posts (for…
comment by danabramov · 2018-03-30 · in React v16.3.0: New lifecycles and context API -
…inherent in the legacy API). And we provided a codemod to help with the "huge legacy apps": https://github.com/reactjs/react-codemod#rename-unsafe-lifec... We've run it internally already to update ~14,000 components.
comment by brianvaughn · 2018-03-28 · in Update on Async Rendering -
…by warnings in third party code that they can't change.) And the codemod has already been released: https://github.com/reactjs/react-codemod#rename-unsafe-lifec... We've used it internally (at Facebook) to update ~14,000 components…
comment by brianvaughn · 2018-03-28 · in Update on Async Rendering -
Just chiming in to note that the codemod has already been released: https://github.com/reactjs/react-codemod#rename-unsafe-lifec... We used it internally (at Facebook) several weeks ago to update ~14,000 components that used the unsafe…
comment by brianvaughn · 2018-03-28 · in Update on Async Rendering -
…React.createClass [1] in favor of regular ES2015 classes, with a fallback to a module. [0] https://github.com/reactjs/react-codemod [1] https://reactjs.org/blog/2017/04/07/react-v15.5.0.html#migra...
comment by TheAceOfHearts · 2018-02-16 · in Just what does “code as data” mean anyway? (2014) -
…libraries, and frameworks wouldn't do the same. [0] https://github.com/facebook/jscodeshift [1] https://github.com/reactjs/react-codemod
comment by TheAceOfHearts · 2018-02-16 · in Just what does “code as data” mean anyway? (2014) -
…a set of codemods to help automatically upgrade codebases when there is a new version of React ( https://github.com/reactjs/react-codemod ). Until `recast` gets TypeScript support, everybody who uses TypeScript has to do this repetitive…
comment by lhnz · 2018-02-01 · in Announcing TypeScript 2.7 -
…To get JSX on the JS side after decaffeinate, you can use the create-element-to-jsx script from https://github.com/reactjs/react-codemod .
comment by alangpierce · 2017-06-19 · in Show HN: Decaffeinate converts CoffeeScript projects to modern JS -
…"codemods" in a repo: - JS: https://github.com/cpojer/js-codemod/tree/master/transforms - React: https://github.com/reactjs/react-codemod/tree/master/transfo... We built and ran the codemod they talk about in this paper many years ago…
comment by vjeux · 2017-03-07 · in Refactoring Legacy JavaScript Code to Use Classes -
…Flow) are all built around node.js. There are even a number of code migrations available for React: https://github.com/reactjs/react-codemod -- but of course even those can't help you if you use non-standard tooling and let a web frontend…
comment by pluma · 2016-02-27 · in Upgrading from React 0.11.2 to 0.14.7 in 347 easy steps