Hacker News new | ask | show | jobs
by cubedrone 2444 days ago
I have used Vue to simplify some enterprise pages of unholy jquery. Vue is added as a single js file in the header, and I call 'new Vue' on a div element. I do not get .vue files, i can't use fancy vue compenents i see online, and a few other things, but it worked really well for my use case. I used vue to replace ~400 lines of jquery with 80 lines of very clean code. Use what you need, and leave the rest.
2 comments

> I used vue to replace ~400 lines of jquery with 80 lines of very clean code. Use what you need, and leave the rest.

I tried using Vue, and started by trying to replace a small 100 line Jquery component and it quickly turned into 300 lines of Vue code. Like eating broccoli, I know that using Vue over Jquery is good for you, but it's still hard to swallow that first bite.

Even doing it that way you still can use the fancy components you see online.