# lyft/react-javascript-to-typescript-transform

Convert React JavaScript code to TypeScript with proper typing

Repository: https://github.com/lyft/react-javascript-to-typescript-transform
Canonical: https://ross.abutalabs.com/products/react-javascript-to-typescript-transform
Homepage: https://marketplace.visualstudio.com/items?itemName=mohsen1.react-javascript-to-typescript-transform-vscode#overview
Language: TypeScript
License: Apache-2.0
License Family: permissive
Topics: lyft
Archived: true
Last push: 2019-09-20T23:52:13+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3360, "days_push": 2539, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1565, forks 67 (observed 2026-08-28T04:05:04.255270+00:00)

## What it is
A codemod tool by Lyft that automatically converts React components written in JavaScript to TypeScript by inferring prop and state types from PropTypes and setState usage. It is available as an npm CLI (`react-js-to-ts`) and a VSCode extension.

## Use cases
- convert react javascript components to typescript
- migrate a react codebase from js to ts
- generate typescript prop types from proptypes
- infer state types from setState calls
- remove proptypes and use typed react.component generics
- codemod react files to tsx

## When to choose
- migrating legacy React JavaScript class components to TypeScript
- wanting automatic prop and state type inference from PropTypes and setState
- preferring a CLI or VSCode extension for one-off file conversions

## When to avoid
- working on already-TypeScript codebases
- needing actively maintained tooling or support for modern React hooks patterns
- requiring conversion of functional components without PropTypes

## Facets
- artifact type: cli-tool
- maturity: abandoned
- function: parser, developer-tools, cli
- domain: web-development, frontend, developer-tools, programming-languages
- platform: cli, editor-plugin, cross-platform
- tags: react, typescript, codemod, code-transformation, vscode-extension, prop-types, javascript-to-typescript, nodejs

## Member repositories
- lyft/react-javascript-to-typescript-transform (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:04.255270+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:00:11.594195+00:00, confidence not recorded.
  - readme: https://github.com/lyft/react-javascript-to-typescript-transform (fetched 2026-08-28T04:05:04.255270+00:00, sha a1e6183a7781)
  - homepage: https://marketplace.visualstudio.com/items?itemName=mohsen1.react-javascript-to-typescript-transform-vscode#overview (fetched 2026-08-29T11:28:58.048220+00:00, sha c8a35dd62f61)
- Data as of 2026-08-30T08:39:29.467469+00:00.
