DEV Community

[Comment from a deleted post]
Collapse
 
eerk profile image
eerk • Edited

Both are quite similar actually, so you could easily learn both. I personally like the Single File Components that Vue has, instead of writing JSX code inside a javascript function that React uses.

I also really like Vue class components, because they get rid of the endless nested objects, functions and arrays that you would otherwise have (in both Vue and React).

;{}()=[thing = function(){//...},{}=>{}, ()=>{render(){}}][0]

Instead, you could be writing:

<template>
    <div>Hello</div>
</template>

<script lang="ts">
export default class Detail extends Vue {
    doSomething() {
       //...
    }
}
</script>

<style scoped>
</style>

I'm exaggerating of course, but I think readability could be a consideration :)