Skip to content

Instantly share code, notes, and snippets.

@manico
Last active March 23, 2018 10:09
Show Gist options
  • Save manico/9b8c2c944d9e54f82bbc6b9864775d89 to your computer and use it in GitHub Desktop.
Save manico/9b8c2c944d9e54f82bbc6b9864775d89 to your computer and use it in GitHub Desktop.
Vue Render Mixin
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