5 ms·
> React let's you focus on how the component should behave instead of doing mental gymnastics trying to manipulate the DOM Agreed - a huge benefit of Vue is ex
by faitswulff 9y ago
> React let's you focus on how the component should behave instead of doing mental gymnastics trying to manipulate the DOM
Agreed - a huge benefit of Vue is exactly that - it's declarative. You describe what you want with a (more or less) plain ol' Javascript object, instead of how you want something to work. It's almost like writing JSON - and is just as readable.
- rleija 9y agoReactJS is declarative as well.
- GhostVII 9y agoJSX is not declarative
- timbuckley 9y agoNot really sure how you can reach that conclusion. With JSX you are declaring what the HTML will look like, rather than specifying how to do the transitions. It's difficult to get more declarative than that.
- faitswulff 9y agoI wasn't saying that it isn't.