DEV Community

Naim Latifi
Naim Latifi

Posted on

Question: What is your favorite JavaScript framework?

Please comment below why you would prefer React, Vue or Angular. Pros and cons of each :)

Top comments (1)

Collapse
 
jhechtf profile image
Jim Burbridge

Vue is my preferred, though I've been working with a fourth option (Svelte) for some time.

The biggest reason that I enjoy both Vue and Svelte is fairly simple: Front-end components have styles. React and Angular don't really deal with them. You off load them into either CSS-in-JS, CSS Modules, or simply by including a CSS file. None of these have ever sat right with me.

Vue and Svelte both use styles in their component files, and in general I agree with the view philosophy of "separation of concerns does not always mean separation of files." In the front-end, styles, html, and logic are all separate but must interlink to form a cohesive solution. I think React and Angular are missing the third leg in that figure, and it bothers me.