package html_of_jsx
Render HTML writing JSX
Install
Dune Dependency
Authors
Maintainers
Sources
html_of_jsx-0.0.1.tbz
sha256=d1a36abcbebd23adfaffe9eed27e69045c1e112da17bfebc385355d2a64f1fb7
sha512=bee674151f2ab6fba41acc1234118b5eca5379aedab2907da517bdeb604ddd02807519b9b29b4eea09595ced9936300b9a6ebf16c9edd92d959151daab4e7a96
CHANGES.md.html
Changes
0.0.1
First working version of the ppx and library
Supports most of features from JSX (uppercase components, fragments, optional attributes, punning)
but with a few improvements (lowercase components, no need to add annotations)
No React idioms (no
className
, nohtmlFor
, noonChange
, etc...)Type-safe, validates attributes and their types (it can be better thought)
Minimal
Html_of_jsx.render
to render an element to HTMLJsx.*
to construct DOM Elements and DOM nodes (Jsx.text
,Jsx.int
,Jsx.null
,Jsx.list
)
Supports some htmx under the ppx (
html_of_jsx.ppx -htmx
)
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>