SolidJS integration for Vike (using the V1 design).
Note
For integrations with React and Vue, see the other vike-*
packages.
See examples/.
Feel free for issue! PR Welcome !
- 0.x (vite 4.x/svelte 4.x/nodejs 16.x)
- 1.x (vite 5.x/svelte 5.x/nodejs 18.x)
svelte:head will insert elements into document.head
, so the Head Config of config.h.ts
is no needed.
Svelte has a specified context. This context should be getContext()
.
import { VikeContextKey } from 'vike-svelte/usePageContext'
const pageContext = getContext(VikeContextKey);