Right now, I\'m trying to make a website that shows recent news posts which is supplied my NodeJS API.
I\'ve tried the following:
HTML
The simplest way I've found of adding multiple root elements is to add a single For this we can use the "display: contents" CSS property. The effect is that it makes the container disappear, making the child elements children of the element the next level up in the DOM. Therefore, in your Vue component template you can have something like this: I can now use my component without the browser messing up formatting because the wrapping Note however, that although this should work in most browsers, you may want to check here to make sure it can handle your target browser.
...
...
...