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
- Host: GitHub
- URL: https://github.com/alanbsmith/composite-component-pattern
- Owner: alanbsmith
- Created: 2019-04-24T13:54:58.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-24T13:55:47.000Z (about 7 years ago)
- Last Synced: 2025-02-02T19:34:13.022Z (over 1 year ago)
- Language: JavaScript
- Homepage: https://alanbsmith.github.io/composite-component-pattern/
- Size: 281 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```