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.
 
 
 
 
Ramnath Shenoy 40bdd51bf5
chore: update Vuex status (#1054) [ci skip]
5 years ago
..
__tests__ refactor: rename `<portal>` to `<teleport>` 5 years ago
src Merge remote-tracking branch 'github/master' into changing_unwrap_ref 5 years ago
LICENSE chore: license 6 years ago
README.md chore: readme 6 years ago
api-extractor.json build: use api-extractor for type rollup 6 years ago
index.js refactor: rename packages 7 years ago
package.json release: v3.0.0-beta.4 5 years ago

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)
})()