vike-svelte
SolidJS integration for Vike (using the V1 design).
[!NOTE]
For integrations with React and Vue, see the othervike-*
packages.
See examples/.
Feel free for issue! PR Welcome !
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);