Created
January 9, 2018 12:28
-
-
Save jacobwyke/64265a9ea7997c85fa1e5253c5b14968 to your computer and use it in GitHub Desktop.
Simple vue.js rendered template component
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
Vue.component('greeting', { | |
//Renders: | |
//<p>Hello World</p> | |
render(createElement) { | |
return createElement( | |
'p', | |
'Hello World' | |
); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment