Evan You c1a85cb124 release: v3.0.0-beta.2 il y a 6 ans
..
__tests__ eee5095692 refactor: rename `<portal>` to `<teleport>` il y a 6 ans
src 1068212cb2 chore: run prettier il y a 6 ans
LICENSE 34989ef7fe chore: license il y a 6 ans
README.md 8f463b3859 chore: readme il y a 6 ans
api-extractor.json b2d269a651 build: use api-extractor for type rollup il y a 6 ans
index.js e05673f4d3 refactor: rename packages il y a 7 ans
package.json c1a85cb124 release: v3.0.0-beta.2 il y a 6 ans

README.md

@vue/server-renderer

const { createSSRApp } = require('vue')
const { renderToString } = require('@vue/server-renderer')

const app = createSSRApp({
  data: () => ({ msg: 'hello' }),
  template: `<div>{{ msg }}</div>`
})

;(async () => {
  const html = await renderToString(app)
  console.log(html)
})()