0👍
I don’t know weither you use Vue 3 or 2 but I am guessing Vue 3.
This is a quick example of router-links dynamically created inside a text.
Vue 3 Example with dynamic components
It is not necessary to use a render function for this. With the <component>
-component you can dynamically create components by providing the is
prop.
If you want to use the render function you can map the sections to VNodes using the h
function
Source:stackexchange.com