0.9.0 • Published 3 years ago

jhj v0.9.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

JHJ

CI

A small utility to serve and render JSX content.

This is an experiment to test out my ESM knowledge. Do not use this in production.

Install

npm install -g jhj

Usage

Render JSX content:

jhj -r '<div className="hello">Hello World</div>'

Run the built-in server:

jhj -S localhost:3000

Quick Start

To render a file, it must be ES compatible and return a default export.

Example:

// hello-world.jsx
const world = 'World'
export default <div className="hello">Hello {world}</div>

Dynamic imports are not supported for the moment

Then you can render this file using:

jhj -f ./hello-world.jsx
0.9.0

3 years ago

0.8.0

3 years ago

0.7.1

3 years ago

0.7.0

3 years ago

0.6.1

3 years ago

0.6.0

3 years ago

0.5.0

3 years ago

0.4.3

3 years ago

0.4.2

3 years ago

0.4.1

3 years ago

0.4.0

3 years ago

0.3.1

3 years ago

0.1.0

3 years ago