How to use the vue-server-renderer.default function in vue-server-renderer

To help you get started, we’ve selected a few vue-server-renderer examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github netlify-labs / netlify-functions-express / functions / vue-ssr.js View on Github external
// Step 1: Create a Vue instance!
import Vue from 'vue'
import serverRenderer from 'vue-server-renderer'

console.log(serverRenderer.default)

const app = new Vue({
  template: `<div>Hello World</div>`
})

const template = `
  
    <title>{{ title }}</title>
  
  
    
  
`

// Step 2: Create a renderer
const renderer = serverRenderer.createRenderer({