Is there a way to do the hydration on vue3?

I am building a server side web app and so I use SSR however the hydration secion of the documentation is not done so right now my webpage does not respond to user interaction, does someone knows how I can implement that?

The docs are work-in-progress and can be seen here:

https://github.com/vuejs/docs-next/pull/937

You’d use createSSRApp instead of createApp in the client to trigger hydration.

I already use createSSRAP but nothing happen
my code on the express server :

const express = require('express')
const app = express()
const { createSSRApp } = require('vue')
app.get('*', async(req, res) => {
const app2 = createSSRApp({
    data (){
        return {
            url: req.url,
            message : 'ok',
            ok : true,
            image : 'example.jpg'
        }
    },
    methods : {
        testFunction(event){
            this.$emit('click', this.page, event);
        },
        function2(){
            console.log('9')
        }
    },
    template : require('fs').readFileSync('./html/pages/home.html', 'utf-8')
})
const content = await renderToString(app2)

const html = `
        <!DOCTYPE html>
        <html lang="en">
        <meta name="title" content="${req.url}">
        <link href='local/css/style.css'  rel="stylesheet">
        <link = href="local/css/custombootstrap.css" rel='stylesheet'>
        <head><title>Hello</title></head>
        <body><div>${content}</div></body>
        </html>
    `
    res.end(html, true)
})

You’re using createSSRApp on the server. You also need to call it on the client.

As currently written you don’t seem to have any client-side JavaScript loaded in your HTML.

I put together an example of SSR with no build process but I don’t think it has much practical value:

https://github.com/skirtles-code/vue-3-ssr-example-no-build

In practice you need a build.

The link I included with my previous post explains how to configure a Vue CLI project for use with SSR.

The Vite example is also a useful reference:

https://github.com/vitejs/vite/tree/main/packages/playground/ssr-vue