Skip to content

bigsan/higher-order-react-components-demo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A demonstration of Higher-Order React components

The components Country and CountryChooser display data synchronously -- it is passed to their props.

The higher order component Promised decorates a component class to load props asynchronously from a promise.

These are combined in the main.js entry point to load country information from HTTP+JSON APIs.

Building

Prerequisites:

  • node and npm
  • Gnu Make & the standard Unix command-line utilities
  • jq

On MacOS X these can all be installed with Homebrew.

To build:

% npm install
% make

To run:

Execute the command:

% make available

Then open http://localhost:8000/ in a modern web browser.

About

A demonstration of higher-order React components

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 67.9%
  • Makefile 21.2%
  • HTML 7.1%
  • CSS 3.8%