# roman01la/html-to-react-components

Converts HTML pages into React components

Repository: https://github.com/roman01la/html-to-react-components
Canonical: https://ross.abutalabs.com/products/html-to-react-components
Homepage: https://roman01la.github.io/html-to-react-components/
Language: JavaScript
License: MIT
License Family: permissive
Topics: react, jsx, html, html-to-jsx, html-to-react, html2jsx, html2react
Last push: 2026-04-14T10:15:34+00:00

## Health v2 (maintenance only)
Score: 67/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 77, release rhythm 35, longevity 100
- inputs: {"age_days": 3899, "days_push": 141, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2178, forks 137 (observed 2026-08-28T04:06:22.984901+00:00)

## What it is
A CLI tool and Node.js library that converts annotated HTML pages into React component modules. Elements marked with data-component attributes become separate components, with public: attributes exposed as typed props and TypeScript output by default.

## Use cases
- convert html to react components
- turn designer html into jsx
- split html page into react components
- generate react components from html files
- html to jsx converter cli
- extract react components from markup

## When to choose
- you received static HTML from designers and need to break it into a React component tree
- you want automated, annotation-driven HTML-to-component conversion with TypeScript prop types
- you prefer a simple CLI with glob support over manual copy-pasting

## When to avoid
- your HTML is heavily dynamic or generated at runtime
- you need a full HTML-to-React runtime renderer rather than build-time code generation
- you use a framework other than React

## Facets
- artifact type: cli-tool
- maturity: active
- function: parser, templating, cli, ui-components
- domain: frontend, web-development, developer-tools
- platform: cli, cross-platform
- tags: html-to-jsx, react, code-generation, typescript-output, html-parsing, nodejs

## Member repositories
- roman01la/html-to-react-components (main) score 67

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:22.984901+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-30T02:48:49.483491+00:00, confidence not recorded.
  - readme: https://github.com/roman01la/html-to-react-components (fetched 2026-08-28T04:06:22.984901+00:00, sha 822d62c56a0a)
  - homepage: https://roman01la.github.io/html-to-react-components/ (fetched 2026-08-29T10:29:04.756500+00:00, sha d6ebea6aa361)
  - registry_npm: https://registry.npmjs.org/html-to-react-components (fetched 2026-08-29T10:29:04.765619+00:00, sha 286958bfb0ab)
- Data as of 2026-08-30T08:39:29.467469+00:00.
