In this video I look at the main differences between Vue 3 and Vue 2. I’m happy to report that they are, for the most part, aimed at making things faster, smoother and more straightforward.
The best changes that I have seen are:
- Using Vite as the build tool. This thing is blazing fast which makes all the difference in the world.
- The creation of Pinia as a replacement for Vuex. Bigger apps need a centralized state store and I, for one, am happy to see Vuex go away. The Redux-y stuff was just a bit too much.
- The Composition API. Almost everything in Vue is now done by importing and executing specific functions that do a single thing. You can still pass objects in the old declarative style, but working with the Composition bits is refreshing.
- Teleport! You can now “shove” a component into any DOM element on the page as long as it has a selector.
Have a look:
Want to learn more about frontend programming?
I wrote an in-depth, real-world tutorial which comes with a book, and over 12 hours of video walkthrough where we build a real application.
- 200 page eBook
- 12 hours of video walkthroughs using Vue and Nuxt
- 2 Case studies focusing on Firebase and Playwright
I'm a big fan of testing, but I get lazy sometimes and it ends up costing me money, directly.
TDD is one of those things that people talk about, argue about, and think is interesting. I'm one of those people, so I asked Brad Wilson to clear it all up for me.