JSX optimization #388
edimitchel
started this conversation in
RFC Discussions
Replies: 2 comments 1 reply
-
Do you know if it's possible to use TSX with script setup or composable function? |
Beta Was this translation helpful? Give feedback.
1 reply
-
Totally agree, would be great to have the same optimizations in JSX, created issue: vuejs/babel-plugin-jsx#720 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
Provide optimizations available on Vue templates to JSX rendering.
Motivation
Using JSX with Vue is not recommanded but is today a way most of developer would prefer. But using it will prevent to benefit hosting and block optimizations.
As I mostly see on last RFCs (especially on script setup and ref sugar), these features is provided thanks to a compilation step which is transparent for the developer:
.value
appearWhy not using the same way to recompile JSX by hoisting static elements and make group optimization ?
Detailed design
Compiled into
Beta Was this translation helpful? Give feedback.
All reactions