1

I am trying to understand how NativeScript-Vue works. While most of the tutorial codes make sense to me, this particular line in the following page seems to evade me.

https://nativescript-vue.org/en/docs/elements/components/frame/

The render function in VueJS seems to have different meaning. https://v2.vuejs.org/v2/guide/render-function.html

new Vue({
  store,
  render: h => h('frame', [h(App)])
}).$start()

I believe I have missed something obvious. Still if possible, please explain this line to me.

1 Answer 1

2

It turns out I did miss something, less than obvious though. It is a combination of arrow function and "h" standing for hyperscript. The following page I stumbled onto does a good job explaining everything in detail.

https://css-tricks.com/what-does-the-h-stand-for-in-vues-render-method/

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.