Last active
March 23, 2018 10:09
-
-
Save manico/9b8c2c944d9e54f82bbc6b9864775d89 to your computer and use it in GitHub Desktop.
Vue Render Mixin
This file contains 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
export default { | |
render(createElement, children) { | |
return createElement( | |
"div", | |
{ | |
class: "c-element", | |
style: { | |
background: "red", | |
padding: "1em", | |
}, | |
}, | |
[ | |
"This is a parent element", | |
...children, | |
], | |
); | |
}, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment