Norse Polytheistic Mythology

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

    3.0.0-rc.11 • 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 @uvue/server-renderer

    DownloadsWeekly Downloads

    0

    Version

    3.0.0-rc.11

    License

    MIT

    Unpacked Size

    46.1 kB

    Total Files

    8

    Last publish

    Collaborators

    • avatar