Creates an application instance in SSR Hydration mode. Usage is exactly the same as createApp().
And its demo code is like
// this runs in the browser.
import { createSSRApp } from 'vue'
const app = createSSRApp({
// ...same app as on server
})
// mounting an SSR app on the client assumes
// the HTML was pre-rendered and will perform
// hydration instead of mounting new DOM nodes.
app.mount('#app')
Describe the bug
The documentation on
createSSRApp()
says, (https://vuejs.org/api/application.html#createssrapp )And its demo code is like
Reproduction
https://github.com/antfu-collective/vite-ssg/blob/26e1e07536b9d2c0e7370f3d0fdd3ff89b04e126/src/client/index.ts#L29
System Info
Used Package Manager
npm
Validations
Contributions