An open API service indexing awesome lists of open source software.

https://github.com/alanbsmith/composite-component-pattern

A small example of the composite component pattern
https://github.com/alanbsmith/composite-component-pattern

Last synced: over 1 year ago
JSON representation

A small example of the composite component pattern

Awesome Lists containing this project

README

          

# Composite Component Pattern Example

## Overview

This is a small example of the composite component pattern described [here](https://medium.com/@_alanbsmith/composite-component-pattern-6331ebcbe07b). TL;DR: Composites divide responsibilities between three component-types:

* Connectors - responsible for handilng application data and providing its child components
* Components - responsible for handling UI logic and state
* Blocks / Elements - responsible for styling

## Up & Running

First, install dependencies:

```sh
yarn install
```

Then start the server:

```
npm start
```