Skip to content

Instantly share code, notes, and snippets.

@freearhey
Created March 6, 2017 00:33
Show Gist options
  • Save freearhey/16775a8560602c3e92f8312d239eb622 to your computer and use it in GitHub Desktop.
Save freearhey/16775a8560602c3e92f8312d239eb622 to your computer and use it in GitHub Desktop.
Пример с подключением компонента во Vue 2 через функцию render
var Vue = require('vue')
var hello = require('./components/hello.vue')
new Vue({
el: 'body',
render: function(createElement) {
return createElement(hello)
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment