K
K
kiranananda2019-12-11 15:04:54
Vue.js
kiranananda, 2019-12-11 15:04:54

How to display html in render function?

Hello!
I'm dumb, I can't figure it out. I am writing a component, or rather, I need a minimal component, tobish functional . The output in which I have to push the html code.

render(createElement, { props, children }) {
    return "<p></p>"

But the catch is that I use the js library and it generates this code. In fact, it gives an svg image with all the options and so on. There is no desire to duplicate this code manually and do it through createElement. Are there any simple solutions?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2019-12-11
@kiranananda

return createElement('div', {
  domProps: {
    innerHTML: '<b>hello, world!!</b>',
  },
});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question