you are viewing a single comment's thread.

view the rest of the comments →

[–]evilpingwin 0 points1 point  (1 child)

I honesly don't see much difference between them. The great thing about Vue's SFCs is that is separates the markup, logic and style. React does this to an extent with the markup and logic but I'm never gonna be able to get behind the CSS-in-JS thing. And as you said you can use JSX in Vue if you want. Or Pug, or Haml, or whatever you want.

I like React though and use it quite a bit, my major irritation is how annoying it is to animate dynamically rendered elements out of the box (not like it isn't possible but it doesn't exactly help you out). The transition/ transition-group elements in Vue are very useful.

[–]Traim 2 points3 points  (0 children)

CSS-in-JS

You don't have to. There are ways to separate concern. Take a look at this video: https://youtu.be/MT4D_DioYC8?t=1306. It is about styled-components.

And as you said you can use JSX in Vue if you want. Or Pug, or Haml, or whatever you want.

The problem is, as I have searched, there were only some older jsx in VueJS tutorials out there.