package html_of_jsx
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
Render HTML with JSX
Install
dune-project
Dependency
Authors
Maintainers
Sources
html_of_jsx-0.0.8.tbz
sha256=6cfb7a461b619efe1f9b16a8c3ccb6c3204b00e4ecc5caaad4ce6181fdd7673d
sha512=ebf9675c4f67cdf24249e5dc4e97522b1bf7423189416016b76ddd177ee9e7149102373979d6eb533b2292cba937cb929517aaf9e5e037019907db2d2830140a
doc/react.html
Enable React attributes
(Experimental)
Support React properties as attributes in all HTML and SVG elements.
React properties
React properties are renamed to match the React DOM API. The rendered HTML won't have any reactisms. For example, `className` is renamed to `class`, `htmlFor` is renamed to `for`, etc.
Those react properties are additional, HTML and SVG attributes are still correct. For example, `class` is still valid, and `className` is also valid.
Why
This mode is a way help to migrate away from (or migrate to) React
Enable
Adding the -react flag into the ppx
(libraries html_of_jsx)
(preprocess (pps html_of_jsx.ppx -react))Example
JSX.render(<div className="random" />);
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page