4 ms·
Why does vue look more and more like react. What's even the point of having a different library then? I'll just use React if I need to write useX nonsense.
by ilrwbwrkhv 5y ago
Why does vue look more and more like react. What's even the point of having a different library then? I'll just use React if I need to write useX nonsense.
- as1992 5y ago> I'll just use React if I need to write useX nonsense. You don't need to. The options API still has 1st class support. The docs allow you to switch between composition API and options API.
- Jenk 5y agoIt started when React had that license fiasco some years ago, and Vue picked up a huge surge of new users as a result. They have, IMHO, been chasing that high ever since. Having said that, I still like Vue for a markup-first kinda of framework. React is code-first, markup later. I tend to favour using React for most development scenarios, however, as most are code-first - and also because there are a dozen React candidates for every Vue candidate in my experience.
- coding123 5y agoOur company was React (after that fiasco died down with React changing the patent/sue clause). About 2 years ago our new tech lead decided that we would use Vue instead. Ever since that decision I found myself walking more and more into backend development. I just felt like all the Vue code we wrote felt like I was writing 2011 AngularJS code. Not sure what people find so compelling about it. A month ago our tech lead decided we're going back to React for everything using Next. Everyone loves it. Everything is type safe and every variable has full type hints. Props are type hinted. It's great.
- Destiner 5y ago
- goodoldneon 5y agoWhy did your tech lead want to switch to Vue?
- Jenk 5y agoHas your TL used svelte yet? :angel:
- notapenny 5y agoI wonder what the reason was to move to Vue in the first place. We had similar discussions in a company I worked for, but most of the senior devs decided that trying to align frameworks for the sake of everyone working in the same one didn't make sense. Given our size, there were more than enough teams working in React/Vue to keep people happy, but moving everything to one or the other felt like a colossal waste of time rewriting existing applications versus executing against our business goals. This reads the same, you went from React -> Vue -> React in the span of 2 years? Sounds like a colossal waste of the company's resources.
- coding123 5y agoIt's more of a slow transition. New projects are in React now. Old ones will slowly be usurped into React over a few years.
- jppope 5y agoI think there is a fair argument that React has implemented some useful concepts and Vue wanted take certain advantageous concepts and add them into the fold. It's a decision and with any decision like that there are certainly going to be pluses and minuses.
- michaelsalim 5y agoI'm not familiar with Vue but that doesn't sound like a bad thing. I'd compare it to a language taking a concept from a different one. For example, PHP7 added null coalescing or look at languages like Java and C# that have added lambda functions in the last few years. They're adding things that have been proven to be useful. Well, I'm not sure in this case but that's beside the point.
- mdoms 5y agoThere are plenty of developers out there like me who think the React hooks API is an abomination and want no part of it.
- rk06 5y agoVue has better DX. In comparison to react hooks: 1. Vue has automatic dependency detection 2. Vue’ composables can be used outside of vue component 3. Do not suffer from over rendering or stale closure And that is just hooks. Vue also has first party router(vue router) and state management (pinia). Along with awesome devtools, which allow any vue library to hook into it.
- graftak 5y agoReact has typed templates with way less syntax (dsl) overhead with magic props nor a magic reactivity/plugin system. Then there’s many well thought out and useful features like portals, suspense, (async state) transitions, error boundaries, server components that vue just does not offer.