Тёмный

Why Vue is better than React 

Sean C Davis
Подписаться 656
Просмотров 57 тыс.
50% 1

Spoiler: It's not. But it takes a different approach toward ... approachability. Many emerging frameworks are following suit.
Different doesn't mean better. But it does mean you might not need React.
#react #vuejs #reactjs #javascript

Опубликовано:

 

4 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 90   
@gandalfthegrey2777
@gandalfthegrey2777 Год назад
Vsauce is a developer now?
@AlfSandvich
@AlfSandvich Год назад
BRO I JUST SAID THAT 😂
@romainsimon
@romainsimon 10 месяцев назад
VueSauce
@forword7275
@forword7275 4 месяца назад
VueSource
@BelligerentChad
@BelligerentChad 3 месяца назад
VueSass
@codedjango
@codedjango Год назад
was struggling to understand React n then turned to Vue3 never to get back again to React....Vue3 is so much intuitive and just by looking at the code flow, it is really easy to grasp in a very short time
@BryanGranseDevs
@BryanGranseDevs Год назад
I agree bro
@sircharlesross537
@sircharlesross537 9 месяцев назад
The real question is, “do you have a job that uses vue now?”
@1haker
@1haker 8 месяцев назад
@@sircharlesross537 yes and i make more money because less competition and hard to find Vue devs :)
@IllIIIIIIllll
@IllIIIIIIllll 8 месяцев назад
​@@sircharlesross537exactly same question.
@Seema-w4m9j
@Seema-w4m9j 8 месяцев назад
Create big apps 💀
@p4ziv0l53
@p4ziv0l53 Год назад
I used React professionally for a while. Was moved to a new project that was using Vue and I was skeptical…unwilling to learn; I thought it was inferior. After one week of just simply following the documentation while building components for our project, I knew I would never turn back. It’s hard to say exactly what it was, but I like to say that React feels over-engineered compared to Vue or Svelte. Also, the teams I’ve been on had really strong C# devs, and Vue just immediately clicked for them. I think that’s powerful. Been a Vue evangelist of sorts for about two years now. Still haven’t been on a project with Vue3 or Composition API, but we have discussions about migrating in the future.
@ojvribeiro
@ojvribeiro Год назад
Vue 3 w/ Comp API is definitely worth a try. We use it in the company I work with Nuxt 3. Such a nice experience.
@p4ziv0l53
@p4ziv0l53 Год назад
@@ojvribeiro I've sandboxed with it and it's definitely nice. Esp script setup
@ojvribeiro
@ojvribeiro Год назад
@oodevr but JSX is not "just JavaScript" until browsers can interpret it without a build step. It is as much DSL as Vue, not that it's a bad thing, it actually improves DX.
@p4ziv0l53
@p4ziv0l53 Год назад
@oodev deleted his comment, I think, as I don't see it but have a reply to it. This is what they said: "IMHO react is not over engineered, the problem is JavaScript is a difficult language. All react hooks and react itself nothing but sole JavaScript. Frameworks, libraries comes and go.. JavaScript will stay. With those frameworks, you dont really code JavaScript but some another language." My response to that would be, I don't believe JavaScript is a difficult language; sure, it can be difficult to work with and full of weird quirks. I don't agree entirely that with a framework like Vue, one is coding in another language and not JavaScript...at all really. Most of the production code I've produced is definitely JavaScript, and easily readable. I think that point is moot. I respect that you probably prefer React though...that's perfectly fine :) I don't think React is over-engineered, it just feels over-engineered compared to an incredibly simple and scalable solution like Vue. I don't identify as a "Vue Developer" -- I do proselytize why it's awesome to work with, which brings me back to the point: Software Engineers of all disciplines can quickly pick up Vue and ship code. I wish the dev community would stop being frameworkers and start being engineers again.
@jsonkody
@jsonkody 10 месяцев назад
Vue3 + comp api (with script setup) + TS + pinia .. is sooo much better than Vue2. Give it a try, its very different at first, but I would never go back
@user-fg6uw2cy8g
@user-fg6uw2cy8g 11 месяцев назад
Bro why your hair upside-down
@farjihanarlin
@farjihanarlin 6 месяцев назад
Lol😂
@hari4406
@hari4406 3 месяца назад
Because his opinion is inverted. He calls unnecessary complication as elegance. Compare the equivalent frontend built with react vs vue vs svelte. Talking about just the core stuff: vue and svelte is so much easier and elegant. Vue has much more support than react as it has official additional stuff included with vue framework, where as with react we have to use potentially dangerous 3rd party libraries and documentation just to create the equivalent offered by vue3.
@someguyO2W
@someguyO2W 21 день назад
​@@hari4406 goddamn! You nailed it.
@sultondev
@sultondev 6 месяцев назад
I use Vue because Vue is always on the same current as EcmaScript standards. And I feel free with vue. I chose vue because of vite. State management is very simple in vue compared to react js. I love how the template is rendered separately. and the script functions don't lost reference links with don't force you to save your function with useCallback. I love how Vue uses js proxy for state management. I didn't see any strong proof that would make me choose to react instead of vue in future projects.
@s0lci70
@s0lci70 9 месяцев назад
hey vsauce not michael here
@yabuking84
@yabuking84 11 месяцев назад
If its a new project I would definitely use Vue. Vue can also do complex projects, especially using Composition API. I think people use React because most projects where already made from React.
@AlfSandvich
@AlfSandvich Год назад
Vsauce is that you?
@tonyartz
@tonyartz Год назад
Amazing work keep it up, you deserve so much more subscribers, so professional! Loved it! Can't wait for more
@gulgdevs
@gulgdevs Год назад
I knew I'm not the only person to think it's Vsauce
@darumaleo
@darumaleo 5 месяцев назад
what about angular?
@darah.k3221
@darah.k3221 4 месяца назад
What you can do with React that you can't do it in Vue?
@icaromendes1250
@icaromendes1250 4 месяца назад
Elegant? Have you seen React code?
@devmenezes
@devmenezes 10 месяцев назад
Do you have the complete interview?
@torb-no
@torb-no 8 месяцев назад
As someone who’s mostly done React over the years I feel like it’s a dead end. React’s way of programming is closelely couoled with VDOM and reacticity at the component level, while Vue has fine grained reactivity and will probably be able to move away from VDOM (which the consensus is that it’s not a good idea at this point). Not to mention, first class TypeScript support.
@DmitriiBaranov-ib3kf
@DmitriiBaranov-ib3kf 5 месяцев назад
Yes, Vapor is coming to Vue!
@theheroofthevirgins1487
@theheroofthevirgins1487 11 месяцев назад
Just added vue to my portfolio if I know react I know vue 👀 is understandable
@Wolity
@Wolity 17 дней назад
Aaamazing
@igu642
@igu642 11 месяцев назад
❤️
@MyLatinLife
@MyLatinLife 10 месяцев назад
🎉
2 месяца назад
I saw the title and think why Vsauce is talking about Vue.js
@pickle1987
@pickle1987 2 месяца назад
I tried React and hosnestly I don't get the hype around it, Angular or Vue are way better imo
@BudiSantoso-d9y
@BudiSantoso-d9y 8 месяцев назад
Vue is better.
@MultieMalik
@MultieMalik 4 месяца назад
youre choice
@charleychener
@charleychener 2 месяца назад
Hey Michael
@ARgaming-vu8zx
@ARgaming-vu8zx Месяц назад
Vue is better then React, or is it?
@jwoods9659
@jwoods9659 6 месяцев назад
React teaches you alot of bad habits.
@umarnaeem4256
@umarnaeem4256 2 месяца назад
For example?
@DmitriiBaranov-ib3kf
@DmitriiBaranov-ib3kf Год назад
Name one thing React does better than Vue does
@DmitriiBaranov-ib3kf
@DmitriiBaranov-ib3kf Год назад
@LongJourneys same thing you could say about picking between an excavator and a spade to dig a pool. DX matters. React: - does manual dependency tracking. Shoot yourself in a foot! - makes you spawn endless arrays and functions creation on every render. Kill GC! - has no two-way binding. Praise the boliderplate! - only has imperative conditioning and loops. Who needs declarative attributes and compile-time rendering optimizations when you can enjoy irreadable callback-hell? - has untrackable data flow - utilizes ugly callack-style slots (JSX to prop) - does manual memoization, because we don't have more important things, and we can waste our time on it - lets you introduce easy infinite loops - only allows separate CSS, unless you're a fan of one of a ton CSS-in-JS solutions, that are ugly to write and deal with - uses htmlFor and className instead of for and class, because JSX/TSX are not smart enough to transpile it properly - offers boilerplate state variables - does immediate reaction to a state variable assignment, so that we could enjoy infinite loops with ease - does complete component re-rendering upon every state change, so that infinite loops could reliably become part of our lifes - has ugly workarounds for async behaviour - has ugly provide/inject with tags - has ugly stores, that are not standard anyways, but Redux is a ton of boilerplate and GC bloat, and MobX makes you wrap every component you wanna use it in - makes it easy to write a ton of components within a singlr file Vue, on the other hand: - is truly reactive. Enjoy ref, reactive, shallowRef, shallowReactive along with computed, watch, watchEffect and never worry about the dependencies, as they are tracked automagically out-of-box - uses v-model for two-way binding - keeps data flow easy with props going down and events going up - has easy to read and write slots - has declarative attributes like v-if, v-else, v-for - keeps logic, layout and styles (scoped, if you want) within the same file and makes it a breeze to use, even with bindings from the logic - uses for and class in HTML template - has easy to use and understand reactive variables, that use Proxies and make their use a breeze even for arrays (EVERYTHING is easily mutable) - has reactive variables accumulate changes within the Vue rendering tick and get applied all at once right before the next render - only re-renders component dynamic parts and only when needed, and tracks the component part's dependencies automagically - has easy async, even top-level - has easy to use and understand provide/inject - has official libraries like Pinia for store, that is a breeze to use amd write - has clear separation of components So if you mean the preference of boilerplate and the ease of shooting yourself in a foot, I'm hands down. Vue does everything React does, but better and easier
@DmitriiBaranov-ib3kf
@DmitriiBaranov-ib3kf Год назад
Oh, and also React makes us allocate callbacks and dependency arrays on every component render. Not to say that every useState allocates a new array under the hood. GC is not very happy about it
@_timestamp
@_timestamp 11 месяцев назад
​@@DmitriiBaranov-ib3kf👏 💯
@neneodonkor
@neneodonkor 11 месяцев назад
​@@DmitriiBaranov-ib3kfin other words Vue works best in every project. It is this kind of thinking that's really annoying. Folks use different tools for different reasons.
@DmitriiBaranov-ib3kf
@DmitriiBaranov-ib3kf 11 месяцев назад
You can write a website using one of a lot of different frameworks and technologies, but some are objectively better than the others. With all the advantages and no trade offs. With all the simplicity, scalability and performance
@levyroth
@levyroth 11 месяцев назад
Rect is horrible.
@noobgamer7034
@noobgamer7034 2 месяца назад
I do not understand this statement: "React is solving very complex problems". I mean WTF?. I know react (read all its documentation) and expert in vue. And I can say that Vue is far much approachable than react. React makes things unnecessary complex. While Vue is straight away allows you to write business logic and be done with it.
@fernandobalieiro
@fernandobalieiro День назад
Bro is VueSauce
@MaxProgramming
@MaxProgramming 6 месяцев назад
You look like if VSauce had longer beard 😅
@khalidamerica1848
@khalidamerica1848 19 дней назад
Angular is watching
@siddharthjoshi3328
@siddharthjoshi3328 3 месяца назад
I thought you're Vsauce
@barcalover016
@barcalover016 Год назад
bruh, why you have thick beard and no 0 hair
@AirSunJet
@AirSunJet 10 месяцев назад
Genetics and Testosteron.
@MrQhuin
@MrQhuin Месяц назад
react is like when you go inside the vue library and hard coding it.
@mexantos
@mexantos 4 месяца назад
In the end of the video still favor react
@naveenjoe892
@naveenjoe892 Год назад
nice beard sir
@codedjango
@codedjango 9 месяцев назад
Vue is always better than react
@cant_sleeeep
@cant_sleeeep 9 месяцев назад
facts. i don’t see why people use react
@IllIIIIIIllll
@IllIIIIIIllll 8 месяцев назад
​@@cant_sleeeepbruh I don't think there is much job opening for vue dev.
@atilkan
@atilkan Месяц назад
React is hairy. Vue is elegant.
@Yusran_Uca
@Yusran_Uca 2 месяца назад
Just because facebook 😂
@Daaboo
@Daaboo 5 месяцев назад
Javascript is a dumpsterfire and React is it's flagship
@AlhoussinAmin
@AlhoussinAmin 18 дней назад
coping
@someguyO2W
@someguyO2W 21 день назад
The cope 😂😂😂
@bushbuddyplatypus
@bushbuddyplatypus 9 месяцев назад
Never use react
@MultieMalik
@MultieMalik 4 месяца назад
youre choice
@human4566vv
@human4566vv 8 месяцев назад
who cares, industry has adopted react so aggressively, doesn't matter what you make it's not gonna change, react will slowly steal good parts of vue, you can't do anything about it
@whimahwhe
@whimahwhe 4 месяца назад
That's bullshit. Before react there were other standards. Industry keeps shifting so discussion is important. React won't be king forever, that's for sure
@noobgamer7034
@noobgamer7034 2 месяца назад
Before react, there was angular
Далее
JavaScript Framework Tier List
40:57
Просмотров 344 тыс.
Clean Code is SLOW But REQUIRED? | Prime Reacts
28:22
Просмотров 308 тыс.
Living life on the edge 😳 #wrc
00:17
Просмотров 6 млн
PERFECT PITCH FILTER.. (CR7 EDITION) 🙈😅
00:21
Просмотров 3,9 млн
БАГ ЕЩЕ РАБОТАЕТ?
00:26
Просмотров 270 тыс.
LOLLIPOP-SCHUTZ-GADGET 🍭 DAS BRAUCHST DU!
00:28
Просмотров 10 млн
Vapor: The Future Of Vue
21:27
Просмотров 121 тыс.
The Problem With Microservices
17:47
Просмотров 434 тыс.
10 JavaScript Interview Questions You HAVE TO KNOW
13:41
Why Are Open Source Alternatives So Bad?
13:06
Просмотров 646 тыс.
The Difference Between Vue and React
10:27
Просмотров 38 тыс.
Why do developers hate Rust?
8:20
Просмотров 126 тыс.
Svelte 5 Surprised Me
6:06
Просмотров 67 тыс.
Should You Stop Using React
8:13
Просмотров 152 тыс.
Living life on the edge 😳 #wrc
00:17
Просмотров 6 млн