@comity/html-react
v0.9.0
Published
React module for server-rendered applications with Comity framework
Downloads
107
Readme
@comity/html-react
React renderer and layout helpers for Comity HTML.
Purpose
Provides React-specific rendering entrypoints that adapt React components into the Comity HTML rendering model. Exposes static and streaming renderers alongside layout helpers.
Scope
This package:
- ✅ renders React output through Comity HTML contracts
- ✅ exposes the
useLayouthelper for React components - ✅ offers the
streamingsubpath for streaming React rendering
This package does NOT:
- ❌ load data from repositories
- ❌ define HTML document contracts
- ❌ implement application business rules
Public API
ReactStaticHtmlRenderer— entrypoint for static React renderinguseLayout— React hook for layout management- Streaming renderer utilities (
@comity/html-react/streaming)
No exhaustive reference; see docs for constraints.
Documentation
- docs/overview.md
- docs/conventions.md
Related Packages
- @comity/html — HTML rendering contracts
- @comity/html-preact — Preact rendering adapter
- @comity/http — HTTP pipeline integration
Status
Stable
Review Completed: 2026-07-25 Reviewer: Hobiri MAGI (DeepSeek v4 Pro) Compliance Score: 99.5% (Green)
