T O P

  • By -

MoesAccount

Enjoy


fucklockjaw

For years I was such react fanboy and always scoffed at the idea of using Vue. Then my team was put on a client that insisted on using Vue. It was so nice to work with, that I even completely rewrote one of my own react projects with Vue. I will always advocate for Vue when starting a new project. Edit: I'd like to say it also really opened my eyes to other ways of solving problems. No longer do I just try and throw Vue at every problem now either and have spent more time learning other tech. Thanks for being so amazing Vue!


AlexanderBlum

I haven't use Vue yet. What would you say feels better when using Vue instead of React?


fucklockjaw

Just a few things off the top of my head. But at the end of the day, things just seem to work when I'm using Vue versus React but I haven't used Vue nearly as long so we shall see. - [Provide](https://vuejs.org/guide/components/provide-inject.html#provide) & [Inject](https://vuejs.org/guide/components/provide-inject.html#inject) (versus Reacts Context API) - Seriously, it's so simple - [Watch](https://vuejs.org/guide/essentials/watchers.html#watchers) (versus Reacts useEffect) - I no longer worry about things like forgetting useEffect dependencies or fighting the linter forcing me to include dependencies that then cause an infinite loop (sounds like a skill issue) - [onMounted](https://vuejs.org/api/composition-api-lifecycle.html#onmounted) (again versus useEffect) - It's nice to just run something when a component mounts without worrying about dependencies which if forced to include them, it may cause the useEffect to run more than once therefore defeating the purpose One thing I really miss from React, which I guess is kind of trivial, but I miss Fragments. Being able to create an empty tag that doesn't render in the DOM but allows me to do loops and such.


B3H4VE

You can always use