awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
reactjs avatar

reactjs/react-codemod

0
View on GitHub↗
4,403 stars·297 forks·JavaScript·MIT·14 views

React Codemod

This project is a suite of abstract syntax tree transformation tools designed to automate the migration of source code to newer versions of React. It provides a set of scripts that programmatically modify code structures to replace deprecated APIs and component patterns with modern equivalents.

The toolkit specializes in converting class components into functional components using arrow functions and prop destructuring. It also includes utilities for modernizing JSX syntax, updating deprecated lifecycle methods to stable versions, and migrating legacy string-based references to callback refs.

Additional capabilities cover the optimization of import patterns, the removal of redundant imports, and the updating of package references and module paths. The project uses rule-driven source migration and pattern-matching syntax analysis to ensure transformations are applied consistently across large codebases.

Features

  • API Version Migration Scripts - Provides specialized scripts for automating the transition between different API versions of a framework.
  • AST Transformation Tools - Provides a suite of utilities for parsing, manipulating, and transforming source code via Abstract Syntax Trees to automate framework migrations.
  • AST-Based Source Transformations - Provides programmatic modification of source code by replacing matched abstract syntax tree nodes while preserving original formatting.
  • Automated Large-Scale Refactoring - Executes synchronized structural changes across entire codebases to align with new import patterns and module structures.
  • Framework Version Migrators - Automates the update of source code to newer React versions by replacing deprecated APIs and patterns.
  • Automated Migration Codemods - Ships automated migration codemods to transform deprecated function calls and component patterns into modern equivalents.
  • Source Code Transformation Engines - Implements a transformation engine that replaces or removes specific code segments to resolve compatibility issues.
  • JavaScript Source Transformers - Provides tools for programmatically transforming JavaScript source code through AST manipulation pipelines.
  • AST-Based Refactorers - Implements automated refactoring by modifying internal syntax trees and rendering them back to source code.
  • Declarative Pattern Matching - Uses declarative pattern matching to identify deprecated API calls and component patterns within the abstract syntax tree.
  • Class to Functional Component Converters - Transforms ES6 class components into functional components using arrow functions and prop destructuring.
  • Class to Functional Component Converters - Transforms legacy React class components into modern functional components using hooks and arrow functions.
  • Functional Component Converters - Transforms ES6 class components into functional components with arrow functions and prop destructuring.
  • Modernizers - Converts legacy element creation calls and deprecated provider syntax into standard JSX elements.
  • Import Optimizations - Removes redundant imports and converts namespace imports to named imports to optimize module structures.
  • Deprecated Method Renaming - Automatically updates deprecated or experimental lifecycle method names to their stable or unsafe versions.
  • Transformation Idempotency - Ensures that running migration scripts multiple times does not corrupt the source code.
  • Package Import Mappers - Swaps outdated module references and import paths between split packages or externalized dependencies.
  • AST Traversal Utilities - Walks through the program structure to find and update specific naming conventions and import declarations.
  • Ref Migration Tools - Replaces deprecated string-based references with callback refs to ensure stable element referencing.
  • Refactoring Utilities - Provides utilities to convert legacy element creation and outdated provider syntax into standard JSX elements.
  • Lifecycle Method Modernizers - Updates deprecated or experimental lifecycle methods to their stable equivalents to ensure framework compatibility.

Star history

Star history chart for reactjs/react-codemodStar history chart for reactjs/react-codemod

How this analysis was created: This summary and feature list were written by an AI model that read the project's README and public documentation pages. Each feature links to the documentation it came from; stars, license and language come straight from the GitHub API. The model does not read the source code, and the analysis is refreshed when the project is re-analysed. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Open-source alternatives to React Codemod

Similar open-source projects, ranked by how many features they share with React Codemod.
  • facebookarchive/codemodfacebookarchive avatar

    facebookarchive/codemod

    4,133View on GitHub↗

    Codemod is a set of software tools for performing structural source code transformations. It functions as an automated codebase migration tool that utilizes abstract syntax tree manipulations rather than simple regular expressions to execute large-scale refactors across multiple files. The project distinguishes itself through an interactive transformation interface that provides colored diffs, allowing users to manually review, accept, or modify each match. It also supports a distributed refactoring workflow, which enables the segmentation of a codebase into assigned work blocks to divide mig

    Python
    View on GitHub↗4,133
  • airbnb/ts-migrateairbnb avatar

    airbnb/ts-migrate

    5,620View on GitHub↗

    ts-migrate is an automated migration tool designed to transform JavaScript source code into compiling TypeScript files. It functions as a code migration framework that uses abstract syntax trees to perform large-scale refactoring and structural changes across a project. The tool provides a customizable framework for defining plugin-based transformation rules, allowing for the automation of specific code changes. It includes specialized engines for converting JSDoc type definitions into native TypeScript annotations and a utility for suppressing compiler errors by inserting type assertions or

    TypeScriptcodemodjavascriptmigration
    View on GitHub↗5,620
  • immunant/c2rustimmunant avatar

    immunant/c2rust

    4,642View on GitHub↗

    c2rust is a source-to-source translation suite and C-to-Rust transpiler designed to convert C source code and libraries into functionally equivalent unsafe Rust code. It operates as a pipeline that preserves original behavior and data structures, producing translated code that compiles as compatible shared libraries or Rust crates. The system includes an automated Rust refactoring framework that uses pattern-based AST rewriting to transform unsafe Rust into safe, idiomatic constructs. It utilizes an ownership inference engine to determine when raw pointers can be converted into safe reference

    Rustmemory-safetymigrationrust
    View on GitHub↗4,642
  • react/metroreact avatar

    react/metro

    5,608View on GitHub↗

    Metro is a JavaScript bundler designed for React Native environments. It functions as a system for resolving dependencies, transforming source code, and packaging JavaScript and assets into bundles for execution. The project includes a development bundler server that hosts assets via HTTP and provides hot module replacement. It features a module resolver that handles platform-specific file extensions and a source code transformer that converts code into tree structures for optimization and minification. The toolset covers programmatic bundle generation, source map creation, and file system c

    JavaScriptbundlerjavascriptreact-native
    View on GitHub↗5,608
See all 30 alternatives to React Codemod→

Frequently asked questions

What does reactjs/react-codemod do?

This project is a suite of abstract syntax tree transformation tools designed to automate the migration of source code to newer versions of React. It provides a set of scripts that programmatically modify code structures to replace deprecated APIs and component patterns with modern equivalents.

What are the main features of reactjs/react-codemod?

The main features of reactjs/react-codemod are: API Version Migration Scripts, AST Transformation Tools, AST-Based Source Transformations, Automated Large-Scale Refactoring, Framework Version Migrators, Automated Migration Codemods, Source Code Transformation Engines, JavaScript Source Transformers.

What are some open-source alternatives to reactjs/react-codemod?

Open-source alternatives to reactjs/react-codemod include: facebookarchive/codemod — Codemod is a set of software tools for performing structural source code transformations. It functions as an automated… immunant/c2rust — c2rust is a source-to-source translation suite and C-to-Rust transpiler designed to convert C source code and… react/metro — Metro is a JavaScript bundler designed for React Native environments. It functions as a system for resolving… rollup/plugins — This is a collection of official extensions for the Rollup bundling process. These plugins serve as module… airbnb/ts-migrate — ts-migrate is an automated migration tool designed to transform JavaScript source code into compiling TypeScript… openrewrite/rewrite — OpenRewrite is an automated refactoring engine and source-to-source migration framework. It uses a lossless semantic…