# 创建一个组件

One of the great advantages of MJML is that it's component-based. Components abstract complex patterns and can easily be reused. In addition to the standard library of components, it is also possible to create your own components!

MJML 的一大优势在于它是基于组件的。组件抽象了复杂的模式,并且可以轻松重用。除了标准组件库之外,还可以创建自己的组件!

We have published a step-by-step guide here (opens new window) that explains how to create a custom components with MJML 4. It will introduce to you the boilerplate repo (opens new window) hosted on Github, which provides a fast way of getting started developing your own components.

我们在此发布了一份分步指南,解释了如何使用 MJML 4 创建自定义组件。它将向您介绍托管在 Github 上的样板代码库,该代码库提供了一种快速上手开发您自己的组件的方法。