Socket
Book a DemoInstallSign in
Socket

@jvlk/rescript-lite-jsx

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jvlk/rescript-lite-jsx

ReScript support for lite-jsx, a lightweight library to generate HTML. A good match for something like HTMX.

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

@jvlk/rescript-lite-jsx

ReScript support for lite-jsx, a lightweight library to generate HTML. A good match for something like HTMX.

https://github.com/lite-jsx/core

Requires Rescript 11+.

Installation

npm i @jvlk/rescript-lite-jsx

Update your project's rescript.json file.

{
    "bs-dependencies": [
+     "@jvlk/rescript-lite-jsx"
    ],
+   "jsx": {
+       "version": 4,
+       "module": "Lite"
+     }
}

How to use

Just write JSX!

// title.res
@jsx.component
let make = (~message) => <h1 class="title">{message->Lit.string}</h1>

// app.res
let html = <Title message="Welcome!">
  • You should use class and not className
  • Supports HTMX props!

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