Solid (SPA)
First-class SolidJS SPA support. Fine-grained signals, Solid JSX compiled by lunx, HMR.
SPA · first-class
Solid vs SolidStart
This page covers Solid SPAs. SolidStart (Solid's meta-framework) is also built by lunx: run
lunx dev / lunx build in a SolidStart project. See Meta-frameworks.Setup
bash
npx lunx-dev@latest create my-solid-app --template solid --ts cd my-solid-app && npm install && npm run dev
typescriptlunx.config.ts
import { defineConfig } from 'lunx-dev' export default defineConfig({ framework: 'solid', entry: 'src/index.tsx', })
Expect
bash
[lunx] adapter: solid