# microsoft/TypeScript-React-Conversion-Guide

A guide for converting a simple JavaScript/React project to TypeScript. Contains both before an after code with the step-by-step process in the README below.

Repository: https://github.com/microsoft/TypeScript-React-Conversion-Guide
Canonical: https://ross.abutalabs.com/products/typescript-react-conversion-guide
Language: JavaScript
License: MIT
License Family: permissive
Archived: true
Last push: 2021-02-01T20:31:20+00:00

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

## Adoption (not part of the score)
Stars 1432, forks 209 (observed 2026-08-28T04:04:43.093676+00:00)

## What it is
A step-by-step Microsoft guide for converting an existing JavaScript/React project to TypeScript, using a TicTacToe example with before/after code. It covers adding the TypeScript compiler to a Webpack/Babel build pipeline and incrementally converting JSX files.

## Use cases
- convert a react project to typescript
- learn how to migrate javascript codebase to typescript
- add typescript to an existing webpack babel build
- step-by-step typescript adoption guide for react apps
- set up ts-loader and source-map-loader in webpack
- find type declarations for react with @types

## When to choose
- you have an existing React/Babel/Webpack project you want to migrate to TypeScript
- you want a worked example with before and after code
- you are new to TypeScript adoption in a build pipeline

## When to avoid
- you are starting a brand-new React project from scratch
- you use a bundler other than Webpack or a different framework than React
- you need up-to-date guidance for the latest TypeScript versions

## Facets
- artifact type: learning-resource
- maturity: maintenance
- function: documentation, developer-tools, build-tool
- domain: web-development, frontend, tutorials, programming-languages
- platform: cross-platform
- tags: typescript, react, migration-guide, tutorial, webpack, babel, nodejs, web-server

## Member repositories
- microsoft/TypeScript-React-Conversion-Guide (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:43.093676+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:37:02.623641+00:00, confidence not recorded.
  - readme: https://github.com/microsoft/TypeScript-React-Conversion-Guide (fetched 2026-08-28T04:04:43.093676+00:00, sha f55f8ba4db2a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
