M
M
MikeVazovsky132021-12-30 13:14:16
Vue.js
MikeVazovsky13, 2021-12-30 13:14:16

How to render a component from a string in Vue 3?

There are 2 components: CheckBox.vue and Link.vue

A string (placeholder) containing Link is passed to Checkbox, example:

<p>I have read the <UILink>Private Policy</UILink></p>


How to correctly pass a string so that the Vue component would be rendered?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dima Pautov, 2021-12-30
@bootd

https://www.npmjs.com/package/vue3-runtime-template

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question