Jan 9, 2020 in Vue.JS
Q:

What are render functions? Cite an example.

1 Answer

0 votes
Jan 9, 2020

Vue allows us to build templates in a multitude of ways, the most common of which is to just use HTML with special directives and mustache tags for reactive features. You can, however, also build templates using JavaScript using a special class of functions, known as render functions. These functions are close to the compiler which means they’re more efficient and faster than other template types. Since you’re using JavaScript for writing render functions, you can use the language freely to add custom functionality directly wherever needed. 

This is extremely useful for advanced scenarios where standard HTML templates may not be the best option. 

Related questions

+1 vote
Jul 16, 2019 in C Plus Plus
  • #c
0 votes
Dec 27, 2019 in Data Science
0 votes
Apr 26, 2020 in AWS
...