You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Jsx is a popular grammar, I know. But the difference of jsx between template is annoying. How about make vue jsx further imitate template? Like:
Use directive in jsx, which has been achieved.
Use "" instead of {}. Like <> <div v-if="!isHidden" /> <>
... And other stuff I haven't thought about it yet.
If the differences between jsx and template syntax can be eliminated, perhaps the problem of template reuse within SFC can be solved directly. I use h() instead of jsx because the difference between them is annoying. Make light code with h() is good but too long code with h() also brings negative experience.
Clear and concise description of the problem
Jsx is a popular grammar, I know. But the difference of jsx between template is annoying. How about make
vue jsx
further imitatetemplate
? Like:""
instead of{}
. Like<> <div v-if="!isHidden" /> <>
... And other stuff I haven't thought about it yet.
If the differences between jsx and template syntax can be eliminated, perhaps the problem of template reuse within SFC can be solved directly. I use
h()
instead ofjsx
because the difference between them is annoying. Make light code withh()
is good but too long code withh()
also brings negative experience.Suggested solution
Could we use
vue/compiler-sfc
directly?Alternative
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: