DEV Community

Discussion on: use bootstrap 5 in vue correctly

Collapse
 
ben_riley_d643f3ca46f93e4 profile image
Ben Riley • Edited

Hello thanks for this post.

I am using this approach now but just to note the component did not work for me I had to wrap an extra div tag around the button and modal as the Vue component can only have a single child node inside the template tag.

You may want to update accordingly

Collapse
 
tefoh profile image
Tefoh

Thanks, yes you are correct about single child node in templates BUT this single child is for vue 2, in new version of vue we have fragments by default and you can write multiple child nodes in templates.

Some comments have been hidden by the post's author - find out more