New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@jvlk/rescript-htmx

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jvlk/rescript-htmx

JSX types and bindings to use ReScript and HTMX together.

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

@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

Keywords

rescript

FAQs

Package last updated on 16 May 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts