alanbsmith / composite-component-pattern

A small example of the composite component pattern

Home Page:https://alanbsmith.github.io/composite-component-pattern/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Composite Component Pattern Example

Overview

This is a small example of the composite component pattern described here. 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:

yarn install

Then start the server:

npm start

About

A small example of the composite component pattern

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


Languages

Language:JavaScript 72.3%Language:CSS 19.5%Language:HTML 8.2%