Re:The self-fulfilling prophecy of React
by throwaway1851 on Friday September 09, 2022 @01:52AM
(#32775759)
I don’t think it does when the markup you’re generating gets more complex. At least, not compared to Vue templates.
What I like about Vue is that you can work up a static design, then cut and paste chunks into single file components, add in a few :attr=“someVar” bindings, some handlebars, and you’re done with the template part. You can also copy and paste and rearrange the markup very easily. It’s a nice workflow and it makes it easy to see and manipulate the structure of the markup without having to think about the JS too much.
I imagine if you enjoy writing JS, then it makes sense to make everything a function and do it all in JS.
What I like about Vue is that you can work up a static design, then cut and paste chunks into single file components, add in a few :attr=“someVar” bindings, some handlebars, and you’re done with the template part. You can also copy and paste and rearrange the markup very easily. It’s a nice workflow and it makes it easy to see and manipulate the structure of the markup without having to think about the JS too much.
I imagine if you enjoy writing JS, then it makes sense to make everything a function and do it all in JS.