Home > Web Front-end > JS Tutorial > Building a Production Stack: Docker, Meilisearch, NGINX & NestJS

Building a Production Stack: Docker, Meilisearch, NGINX & NestJS

Linda Hamilton
Release: 2025-01-04 20:42:40
Original
664 people have browsed it

Building a Production Stack: Docker, Meilisearch, NGINX & NestJS

Introduction

If you're used to Vue 2, you might remember that every component's template needed a single root element. In Vue 3, that's no longer necessary because of fragments. This means your components can now have multiple root elements without needing a wrapper.

<!-- Vue 2 -->
<template>
  <div> <!-- wrapper ? -->
    <h1>My Blog Post</h1>
    <ArticleComponent>{{ content }}</ArticleComponent>
  </div>
</template>

<!-- Vue 3 -->
<template>
  <h1>My Blog Post</h1>
  <ArticleComponent>{{ content }}</ArticleComponent>
</template>

Copy after login

That's very similar to Fragment in React. However, Vue handles fragments behind the scenes. In fact, in Vue 3, you can think of the