{"library":"html-to-react","type":"library","category":null,"description":"html-to-react is a lightweight JavaScript library designed to convert raw HTML strings into a React DOM structure. Released last as version 1.7.0 approximately six years ago, it primarily serves applications built with older React versions, evidenced by its peer dependency on `react@^0.13.0 || ^0.14.0 || >=15`. While not actively maintained for recent React releases, it provides a solution for embedding React components within existing HTML templates, specifically addressing scenarios where a page includes HTML generated externally but requires certain sections to be managed by React. This avoids the common issue of creating multiple top-level React roots, instead parsing the entire HTML into a single React element tree. Key features include the ability to define custom processing instructions for specific DOM nodes, allowing for fine-grained control over how HTML elements are transformed into React components.","language":"javascript","status":"maintenance","version":"1.7.0","tags":["javascript","react","react-component","html","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install html-to-react","imports":["import { Parser } from 'html-to-react';","import { ProcessNodeDefinitions } from 'html-to-react';","import type { HtmlToReactParser, ProcessingInstruction, CustomisableNode } from 'html-to-react';"]},{"cmd":"yarn add html-to-react","imports":[]},{"cmd":"pnpm add html-to-react","imports":[]}],"homepage":null,"github":"https://github.com/aknuds1/html-to-react","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/html-to-react","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/html-to-react/compatibility"}}