Installation

Install Lattish and set up your Tish JSX project.

Install

npm install lattish

Or with pnpm:

pnpm add lattish

Requirements

  • Tish compiler with --jsx lattish (default)
  • Node modules resolution for bare specifiers (e.g. import ... from 'lattish')

Verify

Create a minimal App.tish:

import { createRoot, h } from 'lattish'
 
fn App() {
  return <div>{"Hello from Lattish!"}</div>
}
 
createRoot(document.getElementById("root")).render(App)

Compile with:

tish compile App.tish -o app.js --target js --jsx lattish

Include the output in your HTML and you're good to go.