Better JSX Types #424
ScottAwesome
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I know one of the main appeals of Vue is the single file component structure, and no doubt that is the biggest selling point I hear from others who have came from React, Angular etc., that they really love Single File Components, however, they do have a few drawbacks that have been observed, namely:
Right now, JSX typing is not a first class experience. I think React has really shown that it can be a very first class experience. We already have an official JSX transformer that brings a lot of the same optimizations from single file components to JSX. I believe the general adoption of being able to use JSX in a more ergonomic manner is that Vue lacks the same robust types that say, React does for JSX.
This is to propose that we have types that align with JSX being at parity with SFCs, while I believe the JSX transform plugin for Vue 3 produces the same efficient transforms that single file components, do, Vue has much inferior, especially compared to react, support for JSX with TypeScript.
This is to open up a discussion about prioritizing more robust types for Vue JSX so its on parity level with those of React, for instance.
Beta Was this translation helpful? Give feedback.
All reactions