Hacker GitHub

← All repos

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

Mentions per year 12 mentions · busiest year 2018 (7)
20082026
  1. 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
  2. …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.…
  3. …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
  4. …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
  5. …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
  6. 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
  7. …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...
  8. …libraries, and frameworks wouldn't do the same. [0] https://github.com/facebook/jscodeshift [1] https://github.com/reactjs/react-codemod
  9. …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
  10. …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 .
  11. …"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…
  12. …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…