Solid.js support for OpenTUI.
bun install solid-js @opentui/solid- Add jsx config to tsconfig.json:
{
"compilerOptions": {
"jsx": "preserve",
"jsxImportSource": "@opentui/solid"
}
}- Add preload script to bunfig.toml:
preload = ["@opentui/solid/preload"]- Add render function to index.tsx:
import { render } from "@opentui/solid"
render(() => <text>Hello, World!</text>)- Run with
bun index.tsx.