Installation
Install Lattish and set up your Tish JSX project.
Install
npm install lattishOr with pnpm:
pnpm add lattishRequirements
- 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 lattishInclude the output in your HTML and you're good to go.