3 ms·
For my own projects I’ve actually found it easier to start with Vue immediately, even for a prototype. If I have to do any DOM manipulation outside of perhaps
by deergomoo 8y ago
For my own projects I’ve actually found it easier to start with Vue immediately, even for a prototype.
If I have to do any DOM manipulation outside of perhaps hiding or showing an element based on a button press, I typically find it far more unwieldy to do all that stuff with jQuery than just scaffolding out a quick Vue component.
Plus, there is a build available with a runtime template compiler, so you can just pull that in via a CDN and prototype without needing a build step.
Obviously, it varies a lot based on the sort of things you build, but I’ve found it to have sped up my prototyping process enormously.
- wolco 8y agoYou can still put in a script tag and start using vue.
- colecut 8y agoYou can't use components this way though, unfortunately. I like Vue, never really jumped into react, but I hate using npm and all of the javascript build tools.. I end up fighting with them for a while and decide it's back to jQuery and simplicity. Always works.
- scarface74 8y agoFor one project I worked on, I used a combination of Jquery and HandleBarsJs. It was a great combination and pretty clean. I attached events to the rendered template items, then changed the datamodel as appropriate and rerendered the template. I didn’t (and still don’t) know any of the $cool_kids front end frameworks. But it couldn’t have been a SPA anyway. Each of the pages were created by a CMS that ran on the web and in a native mobile app that had to be able to work offline.