Extra contents beyond WaniKani
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

14 lines
540 B

import { getPage } from 'vite-plugin-ssr/client'
import { createApp } from './app'
import type { PageContext } from './types'
import type { PageContextBuiltInClient } from 'vite-plugin-ssr/client'
hydrate()
async function hydrate() {
// We do Server Routing, but we can also do Client Routing by using `useClientRouter()`
// instead of `getPage()`, see https://vite-plugin-ssr.com/useClientRouter
const pageContext = await getPage<PageContextBuiltInClient & PageContext>()
const app = createApp(pageContext)
app.mount('#app')
}