Vue · Senior · Question 10 of 75

Why are templates generally preferred over hand-written render functions in Vue?

Explanation

Render functions and JSX are useful for highly dynamic output (e.g. a library rendering arbitrary trees), but you lose compile-time optimizations.

Further reading

Problem with a question

Vue · Senior · question 10

Test yourself

Take the Vue · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz