How to build a component library (the basis of actual combat piece)

First, build a component library What are the benefits?

Make design more efficient and develop faster, more consistent product experience. Many manufacturers also do your own component libraries, such as Ant Design, Element, etc., a mature component library does make the experience better products, greater team efficiency. If you want to start building your own product component library, I hope this can help you.

Second, what kind of module can be a component?

Re-use, if a module needs to be reused, it can be that it is a component, such as Search Bar, Tab and so on.

How to build a component library (the basis of actual combat piece)
Third, how to build the component library?

1. classify all components

Reference Ant Design of classification, if your development using Ant component library, then, with such a classification is also very friendly to development of small brothers.

All categories advance to clear rationale, naming process subsequent components will be clearer. (The beginning that he is no clear thinking, resulting in a lot of follow-named assemblies are not clear over again, these are my tears for you stepped pit)

Ant basis of common components which belong to different product components itself there must be more, this time to make their own judgment classified according to their functional components. For example: we can refer to Ant 7 divided into categories based. Spider table chief designer Share

Guess you like

Origin blog.51cto.com/14638846/2464584