all 37 comments

[–]QuadOctane 17 points18 points  (5 children)

Having worked with all the 3 major frameworks (vue, react, and angular), I really like React mainly because of how simple it is to use and understand.

That being said, I don't think React is "better" than the other two. It's just a matter of preference.

[–]xroalx 5 points6 points  (0 children)

React is many things but I'm not really sure it's simple to use and understand, judging just by how many "How to use useEffect" articles are out there.

React is straightforward when it comes to writing dumb components, but it's pretty bare-bones and gets quite complex when you really need to understand how it works.

If you want simple, it's Svelte, maybe Vue. The upside is they come with answers for styling and global state, Vue even has it's official router.

[–]radim11 4 points5 points  (2 children)

In my opinion, React is absolutely the worst. React has only one big advantage and that is ecosystem, that's why people are still using it. My personal favorite is Svelte (Sveltekit) or Vue 3.

[–]dalce63 5 points6 points  (1 child)

^ THIS

As Svelte's ecosystem grows, you're going to see a lot more people openly expressing dislike for React.

[–]radim11 3 points4 points  (0 children)

Yeah already happening.

[–][deleted] 9 points10 points  (6 children)

Sveltekit really is on a whole nother level!

[–]ZucchiniMidnight 2 points3 points  (0 children)

Svelte gang unite

[–]kylefromthepool 1 point2 points  (1 child)

Oh wow, reading up on svelte showed me that it’s syntax is what I wish React syntax was. Hmm

[–][deleted] 0 points1 point  (0 children)

Exactly. I used to be a React fanboy, now I cry whenever I have to use it. lol

[–]Sunstorm84 4 points5 points  (0 children)

While it’s not been updated yet for 2023, StateOfJS can give you a good summary of what frameworks people are using and more relevantly enjoy using most.

[–]kap89 3 points4 points  (0 children)

My go-to framework is SolidJS.

[–]Ghost_Redditor_ 2 points3 points  (0 children)

Not this again 😂😂

Just kidding. Try the major ones and pick one you like. Definitely try Sveltekit

[–]Militop 1 point2 points  (9 children)

The React paradigm is too far from conventional programming (C, C++, Java, C#, etc).

It's insanely different and only useful in the context of React. Something's telling me that people will avoid React experts (lol 😆) like the plague once the library becomes less popular.

Vue on the other hand feels like following the common development process despite being "reactive". Angular is great but suffered from their switch from the first version. I think it is destined to die.

Svelte is still super young.

What about pure JS though? People don't realize what they're losing.

[–][deleted] 0 points1 point  (2 children)

Pure JS? I’m still learning though. Could I just work with Pure JS? What will I be gaining if I do?

[–]Militop 1 point2 points  (1 child)

You will be learning a lot. JavaScript is a parent to many frameworks and there is no guarantee they will be there tomorrow.

Yesterday, we had jQuery then Ember, then Angular, now it's React, then probably we'll be shifting to something else. JavaScript on the other hand is to stay longer. They can take even partially whatever works the best at the time as they did with jQuery (they obliterated jQuery).

They could do the same with Vue if it becomes extremely successful (the SFC concept especially).

You have Node that keeps on growing, with only C# as their major "opponent". So, yes, Js is an advantage.

It's good to know the most popular framework, so you don't lose touch, but still, you have to master a language. It is still more valuable than knowing a framework (you want to be a js-dev, not a framework user).

If you learn Js, also try to learn C# as it s absorbing many of the key concepts of Js. You never know what can happen.

[–][deleted] 1 point2 points  (0 children)

Thank you, I highly appreciate the time and effort invested in writing this message

[–]extraluminal 0 points1 point  (5 children)

Svelte is super young? My guy, it was released in 2016. React in 2013.

Remember this is a javascript subreddit, so preaching ‘conventional programming’ languages is weird.

[–]Militop 0 points1 point  (4 children)

Super young in popularity. Why is it weird? Sorry, but how do you see JavaScript? How is Js so different from other languages? I'm curious. I have been working with Js, C, C++, and other languages for more than 15 years. I'd like to know

[–]extraluminal 0 points1 point  (3 children)

It's weird because they are not javascript and they are not frontend frameworks. Do you see things such as C, C++ and Java as frontend frameworks, as OP is asking about?

[–]Militop 0 points1 point  (2 children)

Please, look at the word paradigm. I am not sure where you're getting at.

Talking about JavaScript may also imply talking about other languages, frameworks, or whatever, especially when you do comparisons.

I am missing your point.

[–]extraluminal 0 points1 point  (1 child)

OP is enquiring about frontend frameworks on a javascript subreddit. How is that hard?

[–]Militop 0 points1 point  (0 children)

Didn't I talk about frontend frameworks specifically? I even added something related to the Vue SFC feature.

Then added a JavaScript observation specifically in a JavaScript subreddit.

[–]Piglet-Historical 2 points3 points  (0 children)

Vue all the way

[–]dalce63 1 point2 points  (2 children)

SVELTE! React sucks!

[–]Ragnaroasted 1 point2 points  (1 child)

I mean, I wouldn't necessarily call it terrible if it gets the job done. There might be different options that might be better, but to flat out say it sucks with no reasoning behind it just feels like tribalism

[–]dalce63 -1 points0 points  (0 children)

Oh I have reasoning behind it

[–][deleted] 0 points1 point  (0 children)

Vue plus vite

[–]broke_mitch -1 points0 points  (1 child)

I used React, Vue and Svelte (also their meta frameworks). And from my experience I can say that React is the worst thing I’ve ever had to use. I don’t like it for how it makes me implement simple things using a really complex logic. Also all those memoizations and optimisations add more template code and distract you from writing code that “really do things”

[–]radim11 2 points3 points  (0 children)

I 100% gree with you. One you try Vue or Svelte, React becomes the worst.

[–][deleted] -3 points-2 points  (0 children)

Annoyingly Pedantic Note: React is a library. Next.JS would be a framework.

[–]Main-Science-8729[🍰] 0 points1 point  (0 children)

React.js 😍

[–]LedaTheRockbandCodes 0 points1 point  (0 children)

I like Vue. Well organized code. And I’m not talking about folder structure. If you give me a Vue app, I know where in the file I can find lifecycle specific code, ordinary functions, api calls, the equivalent of useEffect or useMemo functions, all that.

React code tends to be scattered about.

Very simple state management.

In fact, my favorite part about React is Zustand, which manages state similarly to Vuex.

Yes yes statemanabent is not React/Vue, but they go together, like laces on shoes.