4 ms·
> (Ractive) so I'm relatively unbiased Vue was heavily inspired by Ractive though. (btw I didn't downvote you) Edit: > but React having a steeper learning c
by pier25 7y ago
> (Ractive) so I'm relatively unbiased
Vue was heavily inspired by Ractive though.
(btw I didn't downvote you)
Edit:
> but React having a steeper learning curve (JSX is harder to pick up than SFC)
I don't know.
Templates might be easier for beginners than JSX but OTOH with Vue you need to learn a lot of abstractions (eg: watchers, reactivity is not obvious, etc). I think the complexity of getting started with React is that you need to add more third party libraries plus configuring your dev tools with Webpack/Babel/etc. CRA solves that for you but it's a huge black box if you don't know what you are doing.
I will agree that with Vue you can start directly with script tags a la jQuery and that is great for a lot of projects and beginner devs.
- wolco 7y agoThe complexity comes from small things. Not being able to use html closes a lot of doors. Have you ever wanted to just copy and paste html into a template script tag and have it render? With react you need to convert that first.. I want to grab a json list and display it in a li tag. With vue I fetch, assign to a variable and in the template v-bind it. With react I would write another component for the li maybe do a foreach. Watchers existed in jQuery. Not sure they are so difficult one would choose react most people would just avoid them.