Vue 3 new feature: Fragments (AKA Multiple Root Nodes)

preview_player
Показать описание
In this tutorial you are going to learn all about a new feature in Vue 3 called Fragments. You will learn about the problem as it exists in Vue 2 and how Vue 3 is making this issue go away.

RESOURCES & LINKS MENTIONED IN THIS VIDEO:

CONNECT WITH ME:

Рекомендации по теме
Комментарии
Автор

What are your favorite new features in Vue 3?

DanVega
Автор

Good stuff! I love that in addition to the new features that are getting all the press, Vue 3 is fixing a lot of the little annoyances and gotchas from Vue 2.

jeffrey_codes
Автор

Game changer! CSS styling will be a bit easier to deal with and HTML cleaner and much semantic.

blokche_dev
Автор

What vs code theme are you using? Thanks for the great stuff btw!!

dzsi
Автор

Sorry mate I think I missed something here, for me you just disabled a linter error and barely talked about fragments.
So what are the benefits of not having an html tag wrapper other than it's annoying? I mean technically what is the benefit of having multiple nodes per comp?
Tbh, I like to have that wrapper, if you use BEM for your styling you can be sure that all your Elements and Modifiers will naturally be scoped if you set their Block.

timojedai