Last active
February 17, 2017 06:28
-
-
Save egoist/944e938879029970482b1c5e244f7750 to your computer and use it in GitHub Desktop.
Unified way for bootstraping Vue.js app
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {render} from 'vue-dom' | |
const App = { | |
template: '<h1>hello world</h1>' | |
} | |
render(App, '#app') | |
// on the server | |
import {renderToString} from 'vue-dom/server' | |
renderToString(App) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment