|
|
6 жил өмнө | |
|---|---|---|
| .. | ||
| __tests__ | 22717772dd chore: fix typos (#1090) | 6 жил өмнө |
| src | 1068212cb2 chore: run prettier | 6 жил өмнө |
| LICENSE | 34989ef7fe chore: license | 6 жил өмнө |
| README.md | 8f463b3859 chore: readme | 6 жил өмнө |
| api-extractor.json | c9bf7ded2e refactor(types): mark internal API exports and exclude from d.ts | 6 жил өмнө |
| index.js | e05673f4d3 refactor: rename packages | 7 жил өмнө |
| package.json | a5bb1d02b7 release: v3.0.0-beta.5 | 6 жил өмнө |
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)
})()