3 ms·
That's the hype. Remember react is in it's own ecosystem with their own language/acceptable approaches. The framework will allow you to do more than the commu
by wolco 7y ago
That's the hype.
Remember react is in it's own ecosystem with their own language/acceptable approaches. The framework will allow you to do more than the community so you need to align how you write with what is acceptable. Last year the might mean classes this year hooks. React is more of a religion or a way of life compared to other frameworks.
Because of this there is a moat around react if you are looking to be hired. You need to stay upto date and involve yourself with the community. You can easily dip your toe in react and the coding is simple. The ecosystem is where the complexity lives and this is as important to understand/accept if you plan on moving into it.
Vue is more like jQuery when it came out. It immediately makes sense with what you have been doing and allows you to use as much or as little as you want.
I think react is great for someone who knows nothing (it provides a community / approach) or for someone who knows too much (those who pushed angularjs too far and got burned) but for the masses in the middle it demands you forget much of what you know works to accept this new way of life. It's too much for many. This is where Vue shines, it allows you to build in whatever way you want which allows you to leverage what you already know.
- ng12 7y agoThat's a really bizarre way of describing the most popular framework. If it was as cult-ish as you describe I don't think that would be the case. Also I really think you're overselling the differences between React and Vue. I generally think of them as interchangeable.
- wolco 7y agoYour living in a react mindset. They are not interchangeable unless you do things the react way. Drop one html tag like < <div class="main"> in react and it breaks. Being popular has no bearing on cult-ish status. Popular places like Starbucks can be described that way where a special language is required to order a cup of coffee.
- ng12 7y ago> Drop one html tag like <div class="main"> in react and it breaks. Can you explain? That is entirely valid JSX and you should be able to drop it in any React component.
- wolco 7y agoI didn't know class was valid in jdx previously this had to be changed to className
- ovyerus 7y agoclass is a perfectly valid property in jsx, as it just gets mapped to `{"class": ...}`, however react adopts to use className instead because of the dom api `el.className = ...`, but also some stuff like older versions of IE. most other jsx-based things like hyperapp accept `class` just fine from what i know