3 ms·
You can write TSX/JSX vue components in a similar way to React components. I love vue for its flexibility. https://github.com/vuejs/vue-class-component https:/
by chmln 9y ago
You can write TSX/JSX vue components in a similar way to React components. I love vue for its flexibility.
https://github.com/vuejs/vue-class-component https://github.com/vuejs/vue-class-component
https://github.com/wonderful-panda/vue-tsx-support https://github.com/wonderful-panda/vue-tsx-support
- baddox 9y agoI don’t think React is any less flexible. You can use any library or preprocessor that returns or compiles down to React.createElement function calls.
- chmln 9y agoVue is more flexible primarily via its single-file components and the ability to easily leverage existing HTML/Pug/CSS/SCSS/etc, making it an easier target to migrate to. I've personally preferred React+Redux+Typescript for new personal projects, but when facing a task of modernizing e.g. Angular apps, Vue is much more attractive.
- debaserab2 9y ago> Vue is more flexible primarily via its single-file components In what way is that a demonstration of flexibility? > ability to easily leverage existing HTML/Pug/CSS/SCSS/etc, making it an easier target to migrate to. How is it any easier than React? Seems the exact same to me.
- chmln 9y ago> In what way is that a demonstration of flexibility? By accommodating developers with various preferences. You can have typechecked classes with TSX like React, or self-contained components leveraging traditional HTML/CSS, which is how Angular components are structured. > How is it any easier than React? Seems the exact same to me. There are many similarities between Vue and Angular, especially regarding the DSL in templates. Whereas going from Angular to React is a significant rewrite.