babel-plugin-jsx
reactivue
babel-plugin-jsx | reactivue | |
---|---|---|
6 | 6 | |
1,686 | 1,352 | |
0.9% | - | |
8.3 | 3.6 | |
7 days ago | 12 months ago | |
TypeScript | TypeScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
babel-plugin-jsx
-
Can you give me an idea on how to implement this in vue?
It's also possible to use JSX, as OP's example, using https://github.com/vuejs/babel-plugin-jsx
-
State of JSX in JavaScript Frameworks
Even though templates (or let’s say, SFC) is the dominant way to author Vue components, decent JSX support is also provided for both Vue 2 and Vue 3.
-
The self-fulfilling prophecy of React
I agree - I think JSX does what templating languages have been trying to do for years.
That being said, solid is hardly the only one out there competing that can use JSX:
- https://github.com/vuejs/babel-plugin-jsx
- https://mithril.js.org/jsx.html
- https://preactjs.com/guide/v10/getting-started#setting-up-js...
-
Have been using Vue.js for a while but decided to learn React because of how popular and demanded it is. Not trying to bash React but I can't get over the funkyness of JSX and a couple of other aspects. Everything seems more complex and cumbersome than how it's done in Vue.js. Am I just biased?
Apologies, my link above was the incorrect bookmark... that was for Vue 2. Here is the correct link for vue3: https://github.com/vuejs/jsx-next
-
Vue with TSX - the perfect duo!?
In a nutshell, you once again have to add jsx: “preserve” to your tsconfig.json and do some changes in your Babel config (it’s a plugin this time):
-
Has anyone used JSX with Vue 3?
This exists and works fine - I am using TSX and getting type checking around props etc etc, all the things you'd expect.
reactivue
- Question about computed state
- Peaceful OSS
- From Vue to React: What was your experience?
- Vue v-model like feature in React
-
Vue 3 TSX/Composition API vs React TSX/MobX
Best of both worlds: https://github.com/antfu/reactivue
-
Has anyone used JSX with Vue 3?
I've come to appreciate reactivue, which offers the best of both worlds. You get the strong typescript support that React offers and Vue SFC lacks, and are able to use Vue3 reactivity and Composition API.
What are some alternatives?
vite - Next generation frontend tooling. It's fast!
vueuse - Collection of essential Vue Composition Utilities for Vue 2 and 3 [Moved to: https://github.com/vueuse/vueuse]
Immer - Create the next immutable state by mutating the current one
vueuse - Collection of essential Vue Composition Utilities for Vue 2 and 3
immutable-js - Immutable persistent data collections for Javascript which increase efficiency and simplicity.
ionic - A powerful cross-platform UI toolkit for building native-quality iOS, Android, and Progressive Web Apps with HTML, CSS, and JavaScript. [Moved to: https://github.com/ionic-team/ionic-framework]
htm - Hyperscript Tagged Markup: JSX alternative using standard tagged templates, with compiler support.
vitesse-lite - ⛺️ Lightweight version of Vitesse
volar - ⚡ Explore high-performance tooling for Vue [Moved to: https://github.com/vuejs/language-tools]
vue-promised - 💝 Composable Promises & Promises as components
jsx-vue2 - monorepo for Babel / Vue JSX related packages
unplugin-vue2-script-setup - 💡 Bring `<script setup>` to Vue 2.