lean-jsx
TypeScript icon, indicating that this package has built-in type declarations

0.0.21-alpha • Public • Published

LeanJSX

License Version

Overview

LeanJSX is a server-driven library that allows you to build HTML components using JSX-like syntax, but without relying on hefty client-side JavaScript libraries or frameworks.

Features

  • Server-Driven: Everything runs on the server, minimizing the JavaScript payload.
  • Streamable: Outputs HTML in chunks for quicker time-to-first-byte and faster rendering.
  • Asynchronous Components: Supports async component functions, rendering placeholders while fetching the actual content.
  • Event Handling: Converts JSX-like event attributes to JavaScript snippets for client-side interactivity.

Getting Started

Installation

To create a project using LeanJSX, use the create-lean-jsx-app generator:

npx create-lean-jsx-app@latest <dir>

Replace <dir> with the name of the directory you want the generator to create with the project

Usage documentation

You can find the usage documentation for LeanJSX here: https://lean-web.github.io/lean-jsx/

Readme

Keywords

none

Package Sidebar

Install

npm i lean-jsx

Weekly Downloads

13

Version

0.0.21-alpha

License

MPL-2.0

Unpacked Size

1.31 MB

Total Files

36

Last publish

Collaborators

  • pfernandom