Skip to content

Instantly share code, notes, and snippets.

@zwacky
Created October 26, 2019 08:25
Show Gist options
  • Save zwacky/4bc3bece1aba23590cba4ff237ad062a to your computer and use it in GitHub Desktop.
Save zwacky/4bc3bece1aba23590cba4ff237ad062a to your computer and use it in GitHub Desktop.
render: (createElement: CreateElement, context: RenderContext) => {
return createElement(
'h' + this.level, // tag name
this.$slots.default // array of children
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment