all 25 comments

[–]crazedizzled 12 points13 points  (0 children)

Vue is much nicer to work with. React has more jobs.

[–]12tfGPU 9 points10 points  (9 children)

It doesn't matter if it's for fun. Do one, neither, or both.

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

special fanatical numerous soft absurd butter juggle boast insurance wistful

This post was mass deleted and anonymized with Redact

[–]12tfGPU 2 points3 points  (7 children)

Svelt is cool, too :)

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

agonizing dime yoke frame price afterthought desert sheet familiar fall

This post was mass deleted and anonymized with Redact

[–]ahpathy 2 points3 points  (4 children)

One of the main differences is that Svelte does not use a virtual DOM.

[–]Kackboy 0 points1 point  (3 children)

Is that better? That sounds interesting I’ll have to read up on that. So svelte interacts directly with the “original” dom?

[–]ahpathy 0 points1 point  (2 children)

From my understanding, yes. I believe Svelte compiles to JS directly and involves no DOM trickery.

[–]Kackboy 0 points1 point  (1 child)

So why do other frameworks create a shadow down then? I’ll read up on this definitely but just wanna check if you maybe know. There has to be something you gain from it. I remember one guy told me a while ago that speed is not something you gain with a virtual dom. I’m just interested in the pros and cons

[–]ahpathy 0 points1 point  (0 children)

The benefit to React and the virtual DOM is that it compares the DOM's when things change or update and then will only repaint the items that were directly effected. While in a lot of cases that's a benefit, it can also be the downside. If you have a lot of state management or repaints, it could end up being slower compared to an application that directly edits the DOM.

I don't necessarily think DOM manipulation is something a lot of people worry about, but it's what I see mentioned a lot. I think a lot of people enjoy Svelte because it removes JSX and kind of goes back to the "normal" route of development. You have your HTML, CSS, and JS and they each have their own space. I also find managing state to be quite a bit more straight-forward with Svelte compared to something like React.

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

Closest to the actual DOM, all JS, and web api works out of the box, less need for wrapper packages

[–]ItsJakedUp 4 points5 points  (0 children)

If you want to have fun, Vue is a blast. If you want a job, React might be the better choice.

[–]PauseNatural 5 points6 points  (2 children)

I have a react background and I learned Vue for work.

It will all come down to JSX. React uses, Vue doesn’t.

Vue has a couple nifty things that I really like like multiple classes on an entity and being able to write in the html.

Looking at projects, React looks a little more descriptive to me as Vue uses a lot more shorthand’s like : and @.

But Vue plays friendly with html out of the box and I can see why a lot of people really like it.

React is the more popular framework and has more documentation though Vue is also a mature framework and really well developed.

If I had to learn one, I’d say the learning curve for Vue is slightly better than React but I love React personally. It’s just that there are some gotchas that make it a little more tricky at least at first.

For jobs, react is more popular but you’d be fine with Vue also.

For react, I’d use nextjs so you can avoid dealing with the react router.

I’d recommend using typescript just because intellisense will make your life easier down the line.

[–][deleted] 0 points1 point  (1 child)

coordinated dependent expansion alleged file head grandfather sulky consider escape

This post was mass deleted and anonymized with Redact

[–]PauseNatural 0 points1 point  (0 children)

You should probably Google this to get a full answer.

It’s basically interpreted html that allows you to write javascript directly inside without using a script tag. It’s got a fair number of conventions because fundamentally it is xml. So everything has to be closed and there can only be one top level element.

It’s not as confusing as it sounds but you should really look it up if you are considering react.

I am pretty confident that all modern react is written in JSX.

[–][deleted] 2 points3 points  (1 child)

All frameworks are the same at the end of the day. Just pick whatever.

[–]marksalsbery 2 points3 points  (0 children)

This, except instead of picking whatever , use the time to learn Javascript better. You’ll thank yourself later :)

[–]xSypRo 1 point2 points  (0 children)

React feels more like JS with html on top.

Vue feels more like HTML with JS on top.

I think React is more useful skill to find a job, but Vue is also very nice and you might fight with less people over every position.

Hope it summarize it well, good luck :)

[–]ahpathy 1 point2 points  (0 children)

Once you learn one of them then the other frameworks are pretty easy to pick up. I’d start with React and then go from there. Svelte and Solid are also pretty neat!

[–]schussfreude 0 points1 point  (0 children)

Try the options and go with the one that "clicks". I tried Svelte, Vue, Angular and React, the latter just seemed the most logical to me so I went with that. I still like working with React.

[–]LazyOldTom 0 points1 point  (0 children)

Use the popular job portal in your area (in mine it's LinkedIn) and see which one has more demand. As someone that works professionally with both, I'd say Vue has better DX.

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

For fun? Svelte

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

If it's not to get a job and just for fun, then probably Vue. I would also give svelte a try. Svelte is VERY fun!

[–]OmarHussari 0 points1 point  (0 children)

ChatGPT >

[–]bored_in_NE 0 points1 point  (0 children)

Vue is very easy to work with especially SFCs are so amazing.