-
Notifications
You must be signed in to change notification settings - Fork 549
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
to provide a way to parse vue-jsx
in the browser.For "jsx" enthusiasts
#86
Comments
I believe this is already supported (vue3 still has all the features of vue2 unless noted otherwise) It's not frequently mentioned, but the composition API's |
Is "vue-jsx" in "vue 3.0" particularly close to "react-jsx"? The "vue-jsx" in "vue 2.0" is not very popular. What does "jsx" look like in the future "vue 3.0"? |
Unless someone can correct me, I believe jsx is jsx.. it's exactly the same everywhere.
That's subjective, as are most of the reasons stated for opening this issue, so I can't really comment on any of that. You might find jsx easier to learn and use.. personally, I don't, but it obviously has its merits so I'm glad its an option for components that can be better expressed using it. Also, vue's |
https://github.com/developit/htm <- this is NOT JSX. If that's something you want, it already exists for Vue 2 (and can be easily updated for Vue 3): https://github.com/egoist/vue-html |
I hope that
vue
can provide a way to parsevue-jsx
in the browser.For novice friends, the cost of learning a pre-compiled toolchain is too high.
For "jsx" enthusiasts, using "jsx" in
vue
means using a precompiled toolchainThe learning cost of "jsx" is not high, compared to the "Mustache" template.
If you do not want to use the precompiled toolchain, you must use the "Mustache" template
This is an annoying problem.
I have to admit that many people don't like to use "vue" because they don't like the "Mustache" template.
Of course, using "jsx" in "vue" is not a replacement for the "Mustache" template, just giving "jsx" fans another option.
You can refer to 'Hyperscript Tagged Markup', the "jsx" parser running in the browser, the volume is less than "1kb".
https://github.com/developit/htm
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals
What does the proposed API look like?
The text was updated successfully, but these errors were encountered: