November 2019
Beginner
804 pages
20h 1m
English
Most of the time, you should be able to construct the user interfaces of your applications using simple components and templates. However, there are certain cases where it won't be practical to do so.
One example is when you want to benefit from the flexibility of JavaScript so that you can adapt the DOM and it can be rendered. You can find a detailed example at https://vuejs.org/v2/guide/render-function.html.
Render functions were introduced precisely for such cases. By using such functions, you can programmatically define what the component will be rendered into.
A render function is defined just like any other Vue component option:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Render function</title> ...
Read now
Unlock full access