Htmx

(Experimental)

Support htmx properties as attributes in all HTML elements.

Enable the htmx mode

Adding the -htmx flag into the ppx

  (libraries html_of_jsx)
  (preprocess (pps html_of_jsx.ppx -htmx))

Example

JSX.render(<div hx_boost=true />)

The htmx attributes are scoped with the prefix hx_