I have quite a short question.
How to use v-html
directive in vue JSX syntax?
Thanks in advance for an answer.
Use domPropsInnerHTML
(one word, exactly like this, see below).
Example:
export default {
name: "app",
data() {
return {
msg: 'Something foo bar'
}
},
render() {
return (
<h1 domPropsInnerHTML={this.msg}></h1>
);
}
};
CodeSandbox demo here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With