@jvlk/rescript-htmx

1.0.0 • Public • Published

@jvlk/rescript-htmx

JSX types and bindings to use ReScript and HTMX together.

https://htmx.org/

Requires Rescript 11+.

This is not meant to be a full implantation of HTMX with a server, it's just a starting point to build with HTMX and ReScript.

Installation

npm i @jvlk/rescript-htmx

Update your project's rescript.json file.

{
    "bs-dependencies": [
+     "@jvlk/rescript-htmx"
    ],
}

How to use

JSX props

HTMX requires special HTML attributes that you will need to add to your custom JSX transform.

module Elements = {
  type props = {
    ...JsxDOM.domProps,
+   ...Htmx.JsxProps.t,
  }
}

JS Bindings

wip

Readme

Keywords

Package Sidebar

Install

npm i @jvlk/rescript-htmx

Weekly Downloads

5

Version

1.0.0

License

ISC

Unpacked Size

3.77 kB

Total Files

4

Last publish

Collaborators

  • jderochervlk