欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

render

程序员文章站 2022-07-15 13:37:02
...

render

Type: (createElement: () => VNode) => VNode

Details:

An alternative to string templates allowing you to leverage the full programmatic power of JavaScript. The render function receives a createElement method as it’s first argument used to create VNodes.

If the component is a functional component, the render function also receives an extra argument context, which provides access to contextual data since functional components are instance-less.

The render function has priority over the render function compiled from template option or in-DOM HTML template of the mounting element which is specified by the el option.

See also: Render Functions
相关标签: vue java