Answer the question
In order to leave comments, you need to log in
How to work with Vue with JSX and templates?
I recently learned that Vue has the ability to use JSX.
And as they write that now JSX is in all methods, but for some reason when I tried to make a method on JSX, everything breaks.
methods: {
renderButton(text) {
const myText = text +' '+' Render Work!!!';
return (<button>{myText}</button>);
},
}
<templates>...</templates>
Answer the question
In order to leave comments, you need to log in
Vue connects like a cdn and no components, just an instance.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question