Installation
Install Lattish and set up your Tish JSX project.
Install
npm install @tishlang/lattishOr with pnpm:
pnpm add lattishRequirements
- Tish compiler (JSX support is built in — no flag required)
- Node modules resolution for bare specifiers (e.g.
import ... from '@tishlang/lattish')
Verify
Create a minimal App.tish:
import { createRoot, h } from '@tishlang/lattish'
fn App() {
return <div>Hello from Lattish!</div>
}
createRoot(document.getElementById("root")).render(App)Build with:
tish build App.tish -o app.js --target jsJSX is automatically lowered to Lattish runtime calls — no separate flag is needed. Include the output in your HTML and you're good to go.