@atom-vue/server-renderer
    TypeScript icon, indicating that this package has built-in type declarations

    3.0.0-alpha.1 • Public • Published

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

    Keywords

    Install

    npm i @atom-vue/server-renderer

    DownloadsWeekly Downloads

    92

    Version

    3.0.0-alpha.1

    License

    MIT

    Unpacked Size

    38.1 kB

    Total Files

    7

    Last publish

    Collaborators

    • avatar
    • avatar