---
title: "Discussion on \"Composition and Configuration patterns for building flexible components\" | Hashnode"
description: "Discussion on \"Composition and Configuration patterns for building flexible components\". Building reusable components supporting a lot of different variants and elements is not easy. There are two common approaches, composition and configuration. The composition encourages building functionality by composing multiple components together...."
url: "https://hashnode.com/posts/composition-and-configuration-patterns-for-building-flexible-components/63c29f1bd4d6bc04602e69a0"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Composition and Configuration patterns for building flexible components](https://chrisdinh.hashnode.dev/composition-and-configuration-patterns-for-building-flexible-components?utm_source=hashnode&utm_medium=feed)

Building reusable components supporting a lot of different variants and elements is not easy. There are two common approaches, composition and configuration. The composition encourages building functionality by composing multiple components together....

Jan 14, 2023 · 5 min read · chrisdinh.hashnode.dev  
Updated Jan 16, 2023  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#typescript](https://hashnode.com/tag/typescript)
-   [#composition](https://hashnode.com/tag/composition)
-   [#configuration](https://hashnode.com/tag/configuration)

## Written by

[Chau Dinh (Chris)](https://hashnode.com/@christopherdinh)

@christopherdinh

  
[View profile](https://hashnode.com/@christopherdinh)

Frontend Software Engineer

Hello, world! My name is Chris, a software engineer living in Ho Chi Minh city, Vietnam. My current technologies are JavaScript, HTML/CSS, React, React Native, GraphQL, and Node.js I write this blog for sharing my tips, tricks, fundamental concepts in Computer Science that I've collected from colleague, books, and... the internet. Hope you have funny and informative time on this!

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
