Search code examples
javascriptmean-stackstrapi

what is difference between strapi content type and component?


I'm new user of strapi. While reading docs I got confused between content type and component.What is the difference between these two?


Solution

  • A Content Type is a data structure that is used as a collection of specific content.

    Could be Articles, Restaurants, Products, etc...

    A Component is a data structure (also) that could be used and re-used in many different Content Type.

    Example if you have Article and Product Content Types in your app, and you want to manage SEO tags for both of these Content Types you will create a SEO Component and use it in your Article AND Product Content Type

    You will not have to create the same SEO data structure in both Content Types.