Skip to content

Instantly share code, notes, and snippets.

@asoglovo
Created February 5, 2020 16:53
Show Gist options
  • Save asoglovo/ac20a4806d13919c701e9febb0d763fd to your computer and use it in GitHub Desktop.
Save asoglovo/ac20a4806d13919c701e9febb0d763fd to your computer and use it in GitHub Desktop.
"<h1>Hello, {{ name }}</h1>" template converted to a render function by Vue3 compiler
(function anonymous(Vue) {
const _Vue = Vue
return function render() {
with (this) {
const {
toDisplayString: _toDisplayString,
createVNode: _createVNode,
createBlock: _createBlock,
openBlock: _openBlock
} = _Vue
return (
_openBlock(),
_createBlock("h1", null, "Hello, " + _toDisplayString(name), 1 /* TEXT */)
)
}
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment